From d117dea3447856f93f0a733a5b5fdf3801e3b2f5 Mon Sep 17 00:00:00 2001 From: Bharadwaj Raju Date: Tue, 14 Sep 2021 17:50:34 +0000 Subject: [PATCH] kcms/cursortheme: When a theme has only one size, only disable the size combobox BUG: 442399 FIXED-IN: 5.23 --- kcms/cursortheme/package/contents/ui/main.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kcms/cursortheme/package/contents/ui/main.qml b/kcms/cursortheme/package/contents/ui/main.qml index ccbfd2e44..cb7768859 100644 --- a/kcms/cursortheme/package/contents/ui/main.qml +++ b/kcms/cursortheme/package/contents/ui/main.qml @@ -80,12 +80,6 @@ KCM.GridViewKCM { RowLayout { id: row1 - KCM.SettingStateBinding { - configObject: kcm.cursorThemeSettings - settingName: "cursorSize" - extraEnabledConditions: kcm.canResize - } - QtControls.Label { text: i18n("Size:") } @@ -99,6 +93,12 @@ KCM.GridViewKCM { kcm.preferredSize = kcm.cursorSizeFromIndex(sizeCombo.currentIndex); } + KCM.SettingStateBinding { + configObject: kcm.cursorThemeSettings + settingName: "cursorSize" + extraEnabledConditions: kcm.canResize + } + delegate: QtControls.ItemDelegate { id: sizeComboDelegate