diff options
Diffstat (limited to 'liveviewwatchlets/liveview-notification.qml')
-rw-r--r-- | liveviewwatchlets/liveview-notification.qml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/liveviewwatchlets/liveview-notification.qml b/liveviewwatchlets/liveview-notification.qml new file mode 100644 index 0000000..364b596 --- /dev/null +++ b/liveviewwatchlets/liveview-notification.qml @@ -0,0 +1,41 @@ +import Qt 4.7 +import com.javispedro.sowatch.liveview 1.0 + +LVPage { + id: page + + property QtObject curNotification: null; + + Column { + id: container + + anchors.left: parent.left + anchors.right: parent.right + anchors.leftMargin: 1 + anchors.rightMargin: 1 + + LVLabel { + text: curNotification ? curNotification.title : "" + anchors.left: parent.left + anchors.right: parent.right + font.pixelSize: 22 + wrapMode: Text.WordWrap + } + + LVLabel { + text: curNotification ? curNotification.body : "" + anchors.left: parent.left + anchors.right: parent.right + wrapMode: Text.WordWrap + } + } + + function handlesNotification(notification) { + return false; + } + + function openNotification(notification) { + //scrollable.scrollTop(); + curNotification = notification; + } +} |