Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/contents/ui/config.qml
Show All 20 Lines | |||||
21 | import QtQuick.Controls 1.0 as QtControls | 21 | import QtQuick.Controls 1.0 as QtControls | ||
22 | import QtQuick.Dialogs 1.1 as QtDialogs | 22 | import QtQuick.Dialogs 1.1 as QtDialogs | ||
23 | import QtQuick.Layouts 1.0 | 23 | import QtQuick.Layouts 1.0 | ||
24 | import QtQuick.Window 2.0 // for Screen | 24 | import QtQuick.Window 2.0 // for Screen | ||
25 | //We need units from it | 25 | //We need units from it | ||
26 | import org.kde.plasma.core 2.0 as Plasmacore | 26 | import org.kde.plasma.core 2.0 as Plasmacore | ||
27 | import org.kde.plasma.wallpapers.image 2.0 as Wallpaper | 27 | import org.kde.plasma.wallpapers.image 2.0 as Wallpaper | ||
28 | import org.kde.kquickcontrolsaddons 2.0 | 28 | import org.kde.kquickcontrolsaddons 2.0 | ||
29 | import org.kde.kconfig 1.0 // for KAuthorized | ||||
29 | 30 | | |||
30 | ColumnLayout { | 31 | ColumnLayout { | ||
31 | id: root | 32 | id: root | ||
32 | property alias cfg_Color: colorDialog.color | 33 | property alias cfg_Color: colorDialog.color | ||
33 | property string cfg_Image | 34 | property string cfg_Image | ||
34 | property int cfg_FillMode | 35 | property int cfg_FillMode | ||
35 | property var cfg_SlidePaths: "" | 36 | property var cfg_SlidePaths: "" | ||
36 | property int cfg_SlideInterval: 0 | 37 | property int cfg_SlideInterval: 0 | ||
▲ Show 20 Lines • Show All 309 Lines • ▼ Show 20 Line(s) | 346 | QtControls.Button { | |||
346 | visible: (configDialog.currentWallpaper == "org.kde.image") | 347 | visible: (configDialog.currentWallpaper == "org.kde.image") | ||
347 | iconName: "document-open-folder" | 348 | iconName: "document-open-folder" | ||
348 | text: i18nd("plasma_applet_org.kde.image","Open...") | 349 | text: i18nd("plasma_applet_org.kde.image","Open...") | ||
349 | onClicked: imageWallpaper.showFileDialog(); | 350 | onClicked: imageWallpaper.showFileDialog(); | ||
350 | } | 351 | } | ||
351 | QtControls.Button { | 352 | QtControls.Button { | ||
352 | iconName: "get-hot-new-stuff" | 353 | iconName: "get-hot-new-stuff" | ||
353 | text: i18nd("plasma_applet_org.kde.image","Get New Wallpapers...") | 354 | text: i18nd("plasma_applet_org.kde.image","Get New Wallpapers...") | ||
355 | visible: KAuthorized.authorize("ghns") | ||||
354 | onClicked: imageWallpaper.getNewWallpaper(); | 356 | onClicked: imageWallpaper.getNewWallpaper(); | ||
355 | } | 357 | } | ||
356 | } | 358 | } | ||
357 | } | 359 | } |