Changeset View
Changeset View
Standalone View
Standalone View
kcms/icons/package/contents/ui/main.qml
Show All 30 Lines | |||||
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.iconsModel.selectedThemeIndex | ||
38 | 38 | | |||
39 | enabled: !kcm.downloadingFile | ||||
40 | | ||||
39 | DropArea { | 41 | DropArea { | ||
40 | anchors.fill: parent | 42 | anchors.fill: parent | ||
41 | onEntered: { | 43 | onEntered: { | ||
42 | if (!drag.hasUrls) { | 44 | if (!drag.hasUrls) { | ||
43 | drag.accepted = false; | 45 | drag.accepted = false; | ||
44 | } | 46 | } | ||
45 | } | 47 | } | ||
46 | onDropped: kcm.installThemeFromFile(drop.urls[0]) | 48 | onDropped: kcm.installThemeFromFile(drop.urls[0]) | ||
▲ Show 20 Lines • Show All 254 Lines • Show Last 20 Lines |