Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/contents/ui/config.qml
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Line(s) | 208 | RowLayout { | |||
---|---|---|---|---|---|
209 | Kirigami.FormData.label: i18nd("plasma_wallpaper_org.kde.image","Change every:") | 209 | Kirigami.FormData.label: i18nd("plasma_wallpaper_org.kde.image","Change every:") | ||
210 | QtControls2.SpinBox { | 210 | QtControls2.SpinBox { | ||
211 | id: hoursInterval | 211 | id: hoursInterval | ||
212 | value: root.hoursIntervalValue | 212 | value: root.hoursIntervalValue | ||
213 | from: 0 | 213 | from: 0 | ||
214 | to: 24 | 214 | to: 24 | ||
215 | editable: true | 215 | editable: true | ||
216 | onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value | 216 | onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value | ||
217 | | ||||
218 | textFromValue: function(value, locale) { | ||||
219 | return i18np("%1 hour", "%1 hours", value) | ||||
220 | } | ||||
221 | valueFromText: function(text, locale) { | ||||
222 | return parseInt(text); | ||||
217 | } | 223 | } | ||
218 | QtControls2.Label { | | |||
219 | text: i18nd("plasma_wallpaper_org.kde.image","Hours") | | |||
220 | } | 224 | } | ||
221 | QtControls2.SpinBox { | 225 | QtControls2.SpinBox { | ||
222 | id: minutesInterval | 226 | id: minutesInterval | ||
223 | value: root.minutesIntervalValue | 227 | value: root.minutesIntervalValue | ||
224 | from: 0 | 228 | from: 0 | ||
225 | to: 60 | 229 | to: 60 | ||
226 | editable: true | 230 | editable: true | ||
227 | onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value | 231 | onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value | ||
232 | | ||||
233 | textFromValue: function(value, locale) { | ||||
234 | return i18np("%1 minute", "%1 minutes", value) | ||||
235 | } | ||||
236 | valueFromText: function(text, locale) { | ||||
237 | return parseInt(text); | ||||
228 | } | 238 | } | ||
229 | QtControls2.Label { | | |||
230 | text: i18nd("plasma_wallpaper_org.kde.image","Minutes") | | |||
231 | } | 239 | } | ||
232 | QtControls2.SpinBox { | 240 | QtControls2.SpinBox { | ||
233 | id: secondsInterval | 241 | id: secondsInterval | ||
234 | value: root.secondsIntervalValue | 242 | value: root.secondsIntervalValue | ||
235 | from: root.hoursIntervalValue === 0 && root.minutesIntervalValue === 0 ? 1 : 0 | 243 | from: root.hoursIntervalValue === 0 && root.minutesIntervalValue === 0 ? 1 : 0 | ||
236 | to: 60 | 244 | to: 60 | ||
237 | editable: true | 245 | editable: true | ||
238 | onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value | 246 | onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value | ||
247 | | ||||
248 | textFromValue: function(value, locale) { | ||||
249 | return i18np("%1 second", "%1 seconds", value) | ||||
250 | } | ||||
251 | valueFromText: function(text, locale) { | ||||
252 | return parseInt(text); | ||||
239 | } | 253 | } | ||
240 | QtControls2.Label { | | |||
241 | text: i18nd("plasma_wallpaper_org.kde.image","Seconds") | | |||
242 | } | 254 | } | ||
243 | } | 255 | } | ||
244 | } | 256 | } | ||
245 | Kirigami.Heading { | 257 | Kirigami.Heading { | ||
246 | text: i18nd("plasma_wallpaper_org.kde.image","Folders") | 258 | text: i18nd("plasma_wallpaper_org.kde.image","Folders") | ||
247 | level: 2 | 259 | level: 2 | ||
248 | } | 260 | } | ||
249 | GridLayout { | 261 | GridLayout { | ||
▲ Show 20 Lines • Show All 171 Lines • Show Last 20 Lines |