Commit a7089ca6 authored by Cyril Rossi's avatar Cyril Rossi
Browse files

KCM Style : take into account immutable properties

Summary: Depends on D25520

Reviewers: ervin, bport, mart, davidedmundson, #plasma

Reviewed By: ervin

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25525
parent dd9a6da4
......@@ -42,18 +42,21 @@ QtControls.Popup {
id: iconsOnButtonsCheckBox
Kirigami.FormData.label: i18n("Show icons:")
text: i18n("On buttons")
enabled: !kcm.styleSettings.isImmutable("iconsOnButtons")
checked: kcm.styleSettings.iconsOnButtons
onClicked: kcm.styleSettings.iconsOnButtons = checked
}
QtControls.CheckBox {
text: i18n("In menus")
enabled: !kcm.styleSettings.isImmutable("iconsInMenus")
checked: kcm.styleSettings.iconsInMenus
onClicked: kcm.styleSettings.iconsInMenus = checked
}
QtControls.ComboBox {
id: mainToolBarStyleCombo
enabled: !kcm.styleSettings.isImmutable("toolButtonStyle")
Kirigami.FormData.label: i18n("Main toolbar label:")
model: [
{text: i18n("None"), value: Private.KCM.NoText},
......@@ -69,6 +72,7 @@ QtControls.Popup {
}
QtControls.ComboBox {
enabled: !kcm.styleSettings.isImmutable("toolButtonStyleOtherToolbars")
Kirigami.FormData.label: i18n("Secondary toolbar label:")
model: mainToolBarStyleCombo.model
textRole: "text"
......
......@@ -33,6 +33,8 @@ KCM.GridViewKCM {
view.model: kcm.model
view.currentIndex: kcm.model.selectedStyleIndex
view.enabled: !kcm.styleSettings.isImmutable("widgetStyle")
Component.onCompleted: {
// The widget thumbnails are a bit more elaborate and need more room, especially when translated
view.implicitCellWidth = Kirigami.Units.gridUnit * 20;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment