Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/package/contents/ui/main.qml
Show First 20 Lines • Show All 174 Lines • ▼ Show 20 Line(s) | 169 | QtControls.SpinBox { | |||
---|---|---|---|---|---|
175 | to: 1000 | 175 | to: 1000 | ||
176 | from: 96 | 176 | from: 96 | ||
177 | } | 177 | } | ||
178 | } | 178 | } | ||
179 | 179 | | |||
180 | QtDialogs.FontDialog { | 180 | QtDialogs.FontDialog { | ||
181 | id: fontDialog | 181 | id: fontDialog | ||
182 | title: "Choose a font" | 182 | title: "Choose a font" | ||
183 | modality: Qt.WindowModal | ||||
183 | property string currentCategory | 184 | property string currentCategory | ||
184 | property bool adjustAllFonts: false | 185 | property bool adjustAllFonts: false | ||
185 | onAccepted: { | 186 | onAccepted: { | ||
186 | if (adjustAllFonts) { | 187 | if (adjustAllFonts) { | ||
187 | kcm.adjustAllFonts(font); | 188 | kcm.adjustAllFonts(font); | ||
188 | } else { | 189 | } else { | ||
189 | kcm[currentCategory] = font; | 190 | kcm[currentCategory] = font; | ||
190 | } | 191 | } | ||
191 | } | 192 | } | ||
192 | } | 193 | } | ||
193 | } | 194 | } | ||
194 | } | 195 | } | ||
195 | 196 | |