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