Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/package/contents/ui/main.qml
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 91 | QtControls.CheckBox { | |||
---|---|---|---|---|---|
95 | text: i18n("Exclude range from anti-aliasing") | 95 | text: i18n("Exclude range from anti-aliasing") | ||
96 | Layout.fillWidth: true | 96 | Layout.fillWidth: true | ||
97 | enabled: antiAliasingComboBox.currentIndex == 0 | 97 | enabled: antiAliasingComboBox.currentIndex == 0 | ||
98 | } | 98 | } | ||
99 | 99 | | |||
100 | RowLayout { | 100 | RowLayout { | ||
101 | id: excludeField | 101 | id: excludeField | ||
102 | Layout.preferredWidth: formLayout.maxImplicitWidth | 102 | Layout.preferredWidth: formLayout.maxImplicitWidth | ||
103 | enabled: antiAliasingComboBox.currentIndex == 0 | 103 | enabled: antiAliasingComboBox.currentIndex == 0 | ||
broulik: Also could have been done here, since `enabled` propagates recursively | |||||
104 | QtControls.SpinBox { | 104 | QtControls.SpinBox { | ||
105 | id: excludeFromSpinBox | 105 | id: excludeFromSpinBox | ||
106 | stepSize: 1 | 106 | stepSize: 1 | ||
107 | onValueChanged: kcm.fontAASettings.excludeFrom = value | 107 | onValueChanged: kcm.fontAASettings.excludeFrom = value | ||
108 | textFromValue: function(value, locale) { return i18n("%1 pt", value)} | 108 | textFromValue: function(value, locale) { return i18n("%1 pt", value)} | ||
109 | enabled: excludeCheckBox.checked | 109 | enabled: excludeCheckBox.checked | ||
110 | } | 110 | } | ||
111 | 111 | | |||
112 | QtControls.Label { | 112 | QtControls.Label { | ||
113 | Layout.fillWidth: true | 113 | Layout.fillWidth: true | ||
114 | horizontalAlignment: Text.AlignHCenter | 114 | horizontalAlignment: Text.AlignHCenter | ||
115 | text: i18n("to") | 115 | text: i18n("to") | ||
116 | enabled: excludeCheckBox.checked | ||||
116 | } | 117 | } | ||
117 | 118 | | |||
118 | QtControls.SpinBox { | 119 | QtControls.SpinBox { | ||
119 | id: excludeToSpinBox | 120 | id: excludeToSpinBox | ||
120 | stepSize: 1 | 121 | stepSize: 1 | ||
121 | onValueChanged: kcm.fontAASettings.excludeTo = value | 122 | onValueChanged: kcm.fontAASettings.excludeTo = value | ||
122 | textFromValue: function(value, locale) { return i18n("%1 pt", value)} | 123 | textFromValue: function(value, locale) { return i18n("%1 pt", value)} | ||
123 | enabled: excludeCheckBox.checked | 124 | enabled: excludeCheckBox.checked | ||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |
Also could have been done here, since enabled propagates recursively