Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/package/contents/ui/FontWidget.qml
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 43 | RowLayout { | |||
---|---|---|---|---|---|
52 | } | 52 | } | ||
53 | 53 | | |||
54 | QtControls.Button { | 54 | QtControls.Button { | ||
55 | icon.name: "document-edit" | 55 | icon.name: "document-edit" | ||
56 | Layout.fillHeight: true | 56 | Layout.fillHeight: true | ||
57 | Kirigami.MnemonicData.enabled: false | 57 | Kirigami.MnemonicData.enabled: false | ||
58 | focus: true | 58 | focus: true | ||
59 | onClicked: { | 59 | onClicked: { | ||
60 | fontDialog.adjustAllFonts = false; | 60 | fontDialog.adjustAllFonts = false | ||
61 | fontDialog.currentCategory = root.category | 61 | kcm.adjustFont(root.font, root.category) | ||
62 | fontDialog.font = root.font; | | |||
63 | fontDialog.currentFont = root.font; | | |||
64 | fontDialog.open() | | |||
65 | } | 62 | } | ||
66 | QtControls.ToolTip { | 63 | QtControls.ToolTip { | ||
67 | visible: parent.hovered | 64 | visible: parent.hovered | ||
68 | text: i18n("Select %1 Font...", label.replace(':', '')) | 65 | text: i18n("Select %1 Font...", label.replace(':', '')) | ||
69 | font.capitalization: Font.Capitalize | 66 | font.capitalization: Font.Capitalize | ||
70 | } | 67 | } | ||
71 | } | 68 | } | ||
72 | } | 69 | } | ||
73 | } | 70 | } | ||
74 | 71 | |