Changeset View
Changeset View
Standalone View
Standalone View
kcms/icons/package/contents/ui/main.qml
Show All 28 Lines | |||||
29 | import org.kde.kcm 1.1 as KCM | 29 | import org.kde.kcm 1.1 as KCM | ||
30 | 30 | | |||
31 | import org.kde.private.kcms.icons 1.0 as Private | 31 | import org.kde.private.kcms.icons 1.0 as Private | ||
32 | 32 | | |||
33 | KCM.GridViewKCM { | 33 | KCM.GridViewKCM { | ||
34 | KCM.ConfigModule.quickHelp: i18n("This module allows you to choose the icons for your desktop.") | 34 | KCM.ConfigModule.quickHelp: i18n("This module allows you to choose the icons for your desktop.") | ||
35 | 35 | | |||
36 | view.model: kcm.iconsModel | 36 | view.model: kcm.iconsModel | ||
37 | view.currentIndex: kcm.iconsModel.selectedThemeIndex | 37 | view.currentIndex: kcm.pluginIndex(kcm.iconsSettings.theme) | ||
38 | | ||||
39 | enabled: !kcm.downloadingFile | 38 | enabled: !kcm.downloadingFile | ||
40 | 39 | | |||
41 | DropArea { | 40 | DropArea { | ||
42 | anchors.fill: parent | 41 | anchors.fill: parent | ||
43 | onEntered: { | 42 | onEntered: { | ||
44 | if (!drag.hasUrls) { | 43 | if (!drag.hasUrls) { | ||
45 | drag.accepted = false; | 44 | drag.accepted = false; | ||
46 | } | 45 | } | ||
▲ Show 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | 159 | Kirigami.Action { | |||
161 | iconName: "edit-undo" | 160 | iconName: "edit-undo" | ||
162 | tooltip: i18n("Restore Icon Theme") | 161 | tooltip: i18n("Restore Icon Theme") | ||
163 | visible: model.pendingDeletion | 162 | visible: model.pendingDeletion | ||
164 | onTriggered: model.pendingDeletion = false | 163 | onTriggered: model.pendingDeletion = false | ||
165 | } | 164 | } | ||
166 | ] | 165 | ] | ||
167 | onClicked: { | 166 | onClicked: { | ||
168 | if (!model.pendingDeletion) { | 167 | if (!model.pendingDeletion) { | ||
169 | kcm.iconsModel.selectedTheme = model.themeName; | 168 | kcm.iconsSettings.theme = model.themeName; | ||
170 | } | 169 | } | ||
171 | view.forceActiveFocus(); | 170 | view.forceActiveFocus(); | ||
172 | } | 171 | } | ||
173 | } | 172 | } | ||
174 | 173 | | |||
175 | footer: ColumnLayout { | 174 | footer: ColumnLayout { | ||
176 | Kirigami.InlineMessage { | 175 | Kirigami.InlineMessage { | ||
177 | id: infoLabel | 176 | id: infoLabel | ||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |