kcms/cursortheme: When a theme has only one size, only disable the size combobox

BUG: 442399
FIXED-IN: 5.23
wilder-5.24
Bharadwaj Raju 5 years ago committed by Nate Graham
parent f465657aa8
commit d117dea344
  1. 12
      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

Loading…
Cancel
Save