aboutsummaryrefslogtreecommitdiff
path: root/qml/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'qml/helpers')
-rw-r--r--qml/helpers/NoticeLoadable.qml8
-rw-r--r--qml/helpers/NotificationLoadable.qml10
2 files changed, 18 insertions, 0 deletions
diff --git a/qml/helpers/NoticeLoadable.qml b/qml/helpers/NoticeLoadable.qml
new file mode 100644
index 0000000..2b1226b
--- /dev/null
+++ b/qml/helpers/NoticeLoadable.qml
@@ -0,0 +1,8 @@
+import QtQuick 2.6
+import Sailfish.Silica 1.0
+
+//Just a wrapper around Notice, because I need to use it in a ternary in loader and don't want to pass in a string representation.
+//See components/NoticeOptional.qml for details. If you know a simple and not too ugly solution to make it work without this file:
+//I'm all ears.
+
+Notice {}
diff --git a/qml/helpers/NotificationLoadable.qml b/qml/helpers/NotificationLoadable.qml
new file mode 100644
index 0000000..1e44148
--- /dev/null
+++ b/qml/helpers/NotificationLoadable.qml
@@ -0,0 +1,10 @@
+import QtQuick 2.6
+import Sailfish.Silica 1.0
+import Nemo.Notifications 1.0
+
+//Just a wrapper around Notification, because I need to use it in a ternary in loader and don't want to pass in a string representation.
+//See components/NoticeOptional.qml for details. If you know a simple and not too ugly solution to make it work without this file:
+//I'm all ears.
+
+Notification {
+}