Changeset View
Changeset View
Standalone View
Standalone View
kcms/ksplash/package/contents/ui/main.qml
Show All 21 Lines | |||||
22 | import QtQuick.Controls 1.0 as QtControls | 22 | import QtQuick.Controls 1.0 as QtControls | ||
23 | import org.kde.kirigami 2.4 as Kirigami | 23 | import org.kde.kirigami 2.4 as Kirigami | ||
24 | import org.kde.kconfig 1.0 // for KAuthorized | 24 | import org.kde.kconfig 1.0 // for KAuthorized | ||
25 | import org.kde.kcm 1.1 as KCM | 25 | import org.kde.kcm 1.1 as KCM | ||
26 | 26 | | |||
27 | KCM.GridViewKCM { | 27 | KCM.GridViewKCM { | ||
28 | KCM.ConfigModule.quickHelp: i18n("This module lets you choose the splash screen theme.") | 28 | KCM.ConfigModule.quickHelp: i18n("This module lets you choose the splash screen theme.") | ||
29 | 29 | | |||
30 | enabled: !kcm.testing | 30 | enabled: !kcm.testing && !kcm.splashScreenSettings.isImmutable("theme") | ||
31 | 31 | | |||
32 | view.model: kcm.splashModel | 32 | view.model: kcm.splashModel | ||
33 | //NOTE: pay attention to never break this binding | 33 | //NOTE: pay attention to never break this binding | ||
34 | view.currentIndex: kcm.pluginIndex(kcm.splashScreenSettings.theme) | 34 | view.currentIndex: kcm.pluginIndex(kcm.splashScreenSettings.theme) | ||
35 | 35 | | |||
36 | // putting the InlineMessage as header item causes it to show up initially despite visible false | 36 | // putting the InlineMessage as header item causes it to show up initially despite visible false | ||
37 | header: ColumnLayout { | 37 | header: ColumnLayout { | ||
38 | Kirigami.InlineMessage { | 38 | Kirigami.InlineMessage { | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |