summaryrefslogtreecommitdiff
path: root/liveviewwatchlets/liveview-notification.qml
blob: 364b59645d547d2ca229a3cead9bd1962c5f5cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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;
	}
}