Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/contents/ui/config.qml
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Line(s) | 191 | Connections { | |||
---|---|---|---|---|---|
195 | onSecondsIntervalValueChanged: secondsInterval.value = root.secondsIntervalValue | 195 | onSecondsIntervalValueChanged: secondsInterval.value = root.secondsIntervalValue | ||
196 | } | 196 | } | ||
197 | //FIXME: there should be only one spinbox: QtControls spinboxes are still too limited for it tough | 197 | //FIXME: there should be only one spinbox: QtControls spinboxes are still too limited for it tough | ||
198 | RowLayout { | 198 | RowLayout { | ||
199 | Layout.fillWidth: true | 199 | Layout.fillWidth: true | ||
200 | spacing: units.largeSpacing / 2 | 200 | spacing: units.largeSpacing / 2 | ||
201 | QtControls.Label { | 201 | QtControls.Label { | ||
202 | Layout.minimumWidth: formAlignment - units.largeSpacing | 202 | Layout.minimumWidth: formAlignment - units.largeSpacing | ||
203 | anchors.verticalCenter: parent.verticalCenter | | |||
204 | horizontalAlignment: Text.AlignRight | 203 | horizontalAlignment: Text.AlignRight | ||
205 | text: i18nd("plasma_wallpaper_org.kde.image","Change every:") | 204 | text: i18nd("plasma_wallpaper_org.kde.image","Change every:") | ||
206 | } | 205 | } | ||
207 | QtControls.SpinBox { | 206 | QtControls.SpinBox { | ||
208 | id: hoursInterval | 207 | id: hoursInterval | ||
209 | anchors.verticalCenter: parent.verticalCenter | | |||
210 | Layout.minimumWidth: textMetrics.width + units.gridUnit | 208 | Layout.minimumWidth: textMetrics.width + units.gridUnit | ||
211 | width: units.gridUnit * 3 | 209 | width: units.gridUnit * 3 | ||
212 | decimals: 0 | 210 | decimals: 0 | ||
213 | value: root.hoursIntervalValue | 211 | value: root.hoursIntervalValue | ||
214 | minimumValue: 0 | 212 | minimumValue: 0 | ||
215 | maximumValue: 24 | 213 | maximumValue: 24 | ||
216 | onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value | 214 | onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value | ||
217 | } | 215 | } | ||
218 | QtControls.Label { | 216 | QtControls.Label { | ||
219 | anchors.verticalCenter: parent.verticalCenter | | |||
220 | text: i18nd("plasma_wallpaper_org.kde.image","Hours") | 217 | text: i18nd("plasma_wallpaper_org.kde.image","Hours") | ||
221 | } | 218 | } | ||
222 | Item { | 219 | Item { | ||
223 | Layout.preferredWidth: units.gridUnit | 220 | Layout.preferredWidth: units.gridUnit | ||
224 | } | 221 | } | ||
225 | QtControls.SpinBox { | 222 | QtControls.SpinBox { | ||
226 | id: minutesInterval | 223 | id: minutesInterval | ||
227 | anchors.verticalCenter: parent.verticalCenter | | |||
228 | Layout.minimumWidth: textMetrics.width + units.gridUnit | 224 | Layout.minimumWidth: textMetrics.width + units.gridUnit | ||
229 | width: units.gridUnit * 3 | 225 | width: units.gridUnit * 3 | ||
230 | decimals: 0 | 226 | decimals: 0 | ||
231 | value: root.minutesIntervalValue | 227 | value: root.minutesIntervalValue | ||
232 | minimumValue: 0 | 228 | minimumValue: 0 | ||
233 | maximumValue: 60 | 229 | maximumValue: 60 | ||
234 | onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value | 230 | onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value | ||
235 | } | 231 | } | ||
236 | QtControls.Label { | 232 | QtControls.Label { | ||
237 | anchors.verticalCenter: parent.verticalCenter | | |||
238 | text: i18nd("plasma_wallpaper_org.kde.image","Minutes") | 233 | text: i18nd("plasma_wallpaper_org.kde.image","Minutes") | ||
239 | } | 234 | } | ||
240 | Item { | 235 | Item { | ||
241 | Layout.preferredWidth: units.gridUnit | 236 | Layout.preferredWidth: units.gridUnit | ||
242 | } | 237 | } | ||
243 | QtControls.SpinBox { | 238 | QtControls.SpinBox { | ||
244 | id: secondsInterval | 239 | id: secondsInterval | ||
245 | anchors.verticalCenter: parent.verticalCenter | | |||
246 | Layout.minimumWidth: textMetrics.width + units.gridUnit | 240 | Layout.minimumWidth: textMetrics.width + units.gridUnit | ||
247 | width: units.gridUnit * 3 | 241 | width: units.gridUnit * 3 | ||
248 | decimals: 0 | 242 | decimals: 0 | ||
249 | value: root.secondsIntervalValue | 243 | value: root.secondsIntervalValue | ||
250 | minimumValue: root.hoursIntervalValue === 0 && root.minutesIntervalValue === 0 ? 1 : 0 | 244 | minimumValue: root.hoursIntervalValue === 0 && root.minutesIntervalValue === 0 ? 1 : 0 | ||
251 | maximumValue: 60 | 245 | maximumValue: 60 | ||
252 | onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value | 246 | onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value | ||
253 | } | 247 | } | ||
254 | QtControls.Label { | 248 | QtControls.Label { | ||
255 | anchors.verticalCenter: parent.verticalCenter | | |||
256 | text: i18nd("plasma_wallpaper_org.kde.image","Seconds") | 249 | text: i18nd("plasma_wallpaper_org.kde.image","Seconds") | ||
257 | } | 250 | } | ||
258 | } | 251 | } | ||
259 | QtControls.ScrollView { | 252 | QtControls.ScrollView { | ||
260 | Layout.fillHeight: true; | 253 | Layout.fillHeight: true; | ||
261 | Layout.fillWidth: true | 254 | Layout.fillWidth: true | ||
262 | frameVisible: true | 255 | frameVisible: true | ||
263 | ListView { | 256 | ListView { | ||
▲ Show 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | 349 | DragDrop.DropArea { | |||
378 | Loader { | 371 | Loader { | ||
379 | anchors.fill: parent | 372 | anchors.fill: parent | ||
380 | sourceComponent: (configDialog.currentWallpaper == "org.kde.image") ? thumbnailsComponent : foldersComponent | 373 | sourceComponent: (configDialog.currentWallpaper == "org.kde.image") ? thumbnailsComponent : foldersComponent | ||
381 | } | 374 | } | ||
382 | } | 375 | } | ||
383 | 376 | | |||
384 | RowLayout { | 377 | RowLayout { | ||
385 | id: buttonsRow | 378 | id: buttonsRow | ||
386 | anchors { | 379 | Layout.alignment: Qt.AlignRight | Qt.AlignVCenter | ||
387 | right: parent.right | | |||
388 | } | | |||
389 | QtControls.Button { | 380 | QtControls.Button { | ||
390 | visible: (configDialog.currentWallpaper == "org.kde.slideshow") | 381 | visible: (configDialog.currentWallpaper == "org.kde.slideshow") | ||
391 | iconName: "list-add" | 382 | iconName: "list-add" | ||
392 | text: i18nd("plasma_wallpaper_org.kde.image","Add Folder...") | 383 | text: i18nd("plasma_wallpaper_org.kde.image","Add Folder...") | ||
393 | onClicked: imageWallpaper.showAddSlidePathsDialog() | 384 | onClicked: imageWallpaper.showAddSlidePathsDialog() | ||
394 | } | 385 | } | ||
395 | QtControls.Button { | 386 | QtControls.Button { | ||
396 | visible: (configDialog.currentWallpaper == "org.kde.image") | 387 | visible: (configDialog.currentWallpaper == "org.kde.image") | ||
Show All 12 Lines |