Changeset View
Changeset View
Standalone View
Standalone View
kcms/desktoptheme/package/contents/ui/main.qml
Show All 26 Lines | |||||
27 | import org.kde.kcm 1.1 as KCM | 27 | import org.kde.kcm 1.1 as KCM | ||
28 | 28 | | |||
29 | KCM.GridViewKCM { | 29 | KCM.GridViewKCM { | ||
30 | KCM.ConfigModule.quickHelp: i18n("This module lets you choose the Plasma theme.") | 30 | KCM.ConfigModule.quickHelp: i18n("This module lets you choose the Plasma theme.") | ||
31 | 31 | | |||
32 | view.model: kcm.desktopThemeModel | 32 | view.model: kcm.desktopThemeModel | ||
33 | view.currentIndex: kcm.selectedPluginIndex | 33 | view.currentIndex: kcm.selectedPluginIndex | ||
34 | 34 | | |||
35 | enabled: !kcm.downloadingFile | ||||
36 | | ||||
35 | DropArea { | 37 | DropArea { | ||
36 | anchors.fill: parent | 38 | anchors.fill: parent | ||
37 | onEntered: { | 39 | onEntered: { | ||
38 | if (!drag.hasUrls) { | 40 | if (!drag.hasUrls) { | ||
39 | drag.accepted = false; | 41 | drag.accepted = false; | ||
40 | } | 42 | } | ||
41 | } | 43 | } | ||
42 | onDropped: kcm.installThemeFromFile(drop.urls[0]) | 44 | onDropped: kcm.installThemeFromFile(drop.urls[0]) | ||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |