Changeset View
Changeset View
Standalone View
Standalone View
kcms/notifications/package/contents/ui/main.qml
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 42 | readonly property bool notificationsAvailable: currentOwnerInfo.status === NotificationManager.ServerInfo.Running | |||
---|---|---|---|---|---|
43 | && currentOwnerInfo.vendor === ourServerVendor && currentOwnerInfo.name === ourServerName | 43 | && currentOwnerInfo.vendor === ourServerVendor && currentOwnerInfo.name === ourServerName | ||
44 | 44 | | |||
45 | function openSourcesSettings() { | 45 | function openSourcesSettings() { | ||
46 | // TODO would be nice to re-use the current SourcesPage instead of pushing a new one that lost all state | 46 | // TODO would be nice to re-use the current SourcesPage instead of pushing a new one that lost all state | ||
47 | // but there's no pageAt(index) method in KConfigModuleQml | 47 | // but there's no pageAt(index) method in KConfigModuleQml | ||
48 | kcm.push("SourcesPage.qml"); | 48 | kcm.push("SourcesPage.qml"); | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | Binding { | | |||
52 | target: kcm | | |||
53 | property: "needsSave" | | |||
54 | value: kcm.settings.dirty // TODO or other stuff | | |||
55 | } | | |||
56 | | ||||
57 | Kirigami.FormLayout { | 51 | Kirigami.FormLayout { | ||
58 | Kirigami.InlineMessage { | 52 | Kirigami.InlineMessage { | ||
59 | Kirigami.FormData.isSection: true | 53 | Kirigami.FormData.isSection: true | ||
60 | Layout.fillWidth: true | 54 | Layout.fillWidth: true | ||
61 | type: Kirigami.MessageType.Error | 55 | type: Kirigami.MessageType.Error | ||
62 | text: i18n("Could not find a 'Notifications' widget which is required for displaying notifications."); | 56 | text: i18n("Could not find a 'Notifications' widget which is required for displaying notifications."); | ||
63 | visible: currentOwnerInfo.status === NotificationManager.ServerInfo.NotRunning | 57 | visible: currentOwnerInfo.status === NotificationManager.ServerInfo.NotRunning | ||
64 | } | 58 | } | ||
▲ Show 20 Lines • Show All 217 Lines • Show Last 20 Lines |