diff options
-rw-r--r-- | framework/src/sinkfabric.cpp | 4 | ||||
-rw-r--r-- | views/calendar/qml/View.qml | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp index 42e6d817..0cd90b3f 100644 --- a/framework/src/sinkfabric.cpp +++ b/framework/src/sinkfabric.cpp | |||
@@ -75,6 +75,10 @@ public: | |||
75 | } | 75 | } |
76 | if (type == "contacts") { | 76 | if (type == "contacts") { |
77 | scope.setType<ApplicationDomain::Contact>(); | 77 | scope.setType<ApplicationDomain::Contact>(); |
78 | } else if (type == "event") { | ||
79 | scope.setType<ApplicationDomain::Event>(); | ||
80 | } else if (type == "calendar") { | ||
81 | scope.setType<ApplicationDomain::Calendar>(); | ||
78 | } else if (type == "mail") { | 82 | } else if (type == "mail") { |
79 | scope.setType<ApplicationDomain::Mail>(); | 83 | scope.setType<ApplicationDomain::Mail>(); |
80 | } else if (type == "folder") { | 84 | } else if (type == "folder") { |
diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml index c46b9480..5efda663 100644 --- a/views/calendar/qml/View.qml +++ b/views/calendar/qml/View.qml | |||
@@ -17,7 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | import QtQuick 2.9 | 19 | import QtQuick 2.9 |
20 | import QtQuick.Controls 1.3 as Controls1 | 20 | import QtQuick.Controls 2.1 |
21 | import QtQuick.Layouts 1.2 | 21 | import QtQuick.Layouts 1.2 |
22 | 22 | ||
23 | import org.kube.framework 1.0 as Kube | 23 | import org.kube.framework 1.0 as Kube |
@@ -31,6 +31,10 @@ RowLayout { | |||
31 | 31 | ||
32 | anchors.fill: parent | 32 | anchors.fill: parent |
33 | 33 | ||
34 | StackView.onActivated: { | ||
35 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "event"}) | ||
36 | } | ||
37 | |||
34 | Rectangle { | 38 | Rectangle { |
35 | width: Kube.Units.gridUnit * 10 | 39 | width: Kube.Units.gridUnit * 10 |
36 | Layout.fillHeight: parent.height | 40 | Layout.fillHeight: parent.height |