[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [plasma-workspace] applets/digital-clock/package/contents/ui: [digital-clock] Pass the enabled plugi
From: Martin Klapetek <mklapetek () kde ! org>
Date: 2015-11-16 21:03:46
Message-ID: E1ZyQwE-0003Li-Eh () scm ! kde ! org
[Download RAW message or body]
Git commit a179d512b4fcba909a7c03da995dd963c220491b by Martin Klapetek.
Committed on 16/11/2015 at 20:51.
Pushed by mklapetek into branch 'master'.
[digital-clock] Pass the enabled plugins to the manager explicitly
It's a singleton and cannot be aliased, so uses Connection instead
M +14 -0 applets/digital-clock/package/contents/ui/CalendarView.qml
http://commits.kde.org/plasma-workspace/a179d512b4fcba909a7c03da995dd963c220491b
diff --git a/applets/digital-clock/package/contents/ui/CalendarView.qml \
b/applets/digital-clock/package/contents/ui/CalendarView.qml index 73425df..bd2eee8 \
100644
--- a/applets/digital-clock/package/contents/ui/CalendarView.qml
+++ b/applets/digital-clock/package/contents/ui/CalendarView.qml
@@ -99,6 +99,14 @@ Item {
}
}
+ Connections {
+ target: plasmoid.configuration
+
+ onEnabledCalendarPluginsChanged: {
+ PlasmaCalendar.EventPluginsManager.enabledPlugins = \
plasmoid.configuration.enabledCalendarPlugins; + }
+ }
+
PlasmaComponents.Label {
id: dayLabel
height: dayHeading.height + dateHeading.height
@@ -220,4 +228,10 @@ Item {
onCheckedChanged: plasmoid.hideOnWindowDeactivate = !checked
}
+ Component.onCompleted: {
+ // Set the list of enabled plugins from config
+ // to the manager
+ PlasmaCalendar.EventPluginsManager.enabledPlugins = \
plasmoid.configuration.enabledCalendarPlugins; + }
+
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic