summaryrefslogtreecommitdiff
path: root/qml/cover/CoverPage.qml
blob: a561ebaeab05e99a78259b4e9ce2a3ee3242b29e (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 QtQuick 2.0
import Sailfish.Silica 1.0
import org.nemomobile.configuration 1.0
import "../watch"

CoverBackground {
	ConfigurationValue {
		id: curPageSetting
		key: curSettingsPrefix + "/cur-page"
		defaultValue: 0

		onValueChanged: {
			if (watchView.curPage !== value) {
				watchView.switchToPage(value);
			}
		}
	}

	Column {
		anchors.centerIn: parent
		spacing: Theme.paddingLarge

		Item {
			width: 96 * 2
			height: 96 * 2
			anchors.horizontalCenter: parent.horizontalCenter

			WatchView {
				id: watchView
				anchors.centerIn: parent
				scale: 2
			}
		}

		Label {
			id: label
			anchors.horizontalCenter: parent.horizontalCenter
			text: "Salmeta"
		}
	}
}