Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/package/contents/ui/main.qml
Show First 20 Lines • Show All 286 Lines • ▼ Show 20 Line(s) | 283 | QtControls.CheckBox { | |||
---|---|---|---|---|---|
287 | onClicked: { | 287 | onClicked: { | ||
288 | kcm.fontsAASettings.dpi = checked ? dpiSpinBox.value : 0 | 288 | kcm.fontsAASettings.dpi = checked ? dpiSpinBox.value : 0 | ||
289 | dpiTwiddledMessage.visible = checked | 289 | dpiTwiddledMessage.visible = checked | ||
290 | } | 290 | } | ||
291 | } | 291 | } | ||
292 | 292 | | |||
293 | QtControls.SpinBox { | 293 | QtControls.SpinBox { | ||
294 | id: dpiSpinBox | 294 | id: dpiSpinBox | ||
295 | stepSize: 24 | | |||
296 | editable: true | 295 | editable: true | ||
ngraham: that's the default value, so you can just remove this line entirely | |||||
297 | enabled: dpiCheckBox.checked | 296 | enabled: dpiCheckBox.checked | ||
298 | value: kcm.fontsAASettings.dpi !== 0 ? kcm.fontsAASettings.dpi : 96 | 297 | value: kcm.fontsAASettings.dpi !== 0 ? kcm.fontsAASettings.dpi : 96 | ||
299 | onValueModified: kcm.fontsAASettings.dpi = value | 298 | onValueModified: kcm.fontsAASettings.dpi = value | ||
300 | // to: need to divide to stepSize | 299 | to: 999 | ||
301 | to: 1008 | 300 | from: 1 | ||
302 | // lowest vaue here can be == stepSize, that is because 0 means off | | |||
303 | from: 24 | | |||
304 | } | 301 | } | ||
305 | } | 302 | } | ||
306 | 303 | | |||
307 | QtDialogs.FontDialog { | 304 | QtDialogs.FontDialog { | ||
308 | id: fontDialog | 305 | id: fontDialog | ||
309 | title: i18n("Select Font") | 306 | title: i18n("Select Font") | ||
310 | modality: Qt.WindowModal | 307 | modality: Qt.WindowModal | ||
311 | property string currentCategory | 308 | property string currentCategory | ||
Show All 12 Lines |
that's the default value, so you can just remove this line entirely