Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/package/contents/ui/main.qml
Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Line(s) | 47 | Kirigami.FormLayout { | |||
---|---|---|---|---|---|
261 | QtDialogs.FontDialog { | 261 | QtDialogs.FontDialog { | ||
262 | id: fontDialog | 262 | id: fontDialog | ||
263 | title: i18n("Select Font") | 263 | title: i18n("Select Font") | ||
264 | modality: Qt.WindowModal | 264 | modality: Qt.WindowModal | ||
265 | property string currentCategory | 265 | property string currentCategory | ||
266 | property bool adjustAllFonts: false | 266 | property bool adjustAllFonts: false | ||
267 | onAccepted: { | 267 | onAccepted: { | ||
268 | if (adjustAllFonts) { | 268 | if (adjustAllFonts) { | ||
269 | kcm.adjustAllFonts(font); | 269 | kcm.adjustAllFonts() | ||
270 | } else { | 270 | } else { | ||
271 | kcm.fontsSettings[currentCategory] = font; | 271 | kcm.adjustFont(font, currentCategory) | ||
272 | } | 272 | } | ||
273 | } | 273 | } | ||
274 | } | 274 | } | ||
275 | } | 275 | } | ||
276 | } | 276 | } | ||
277 | } | 277 | } |