summaryrefslogtreecommitdiff
path: root/metawatch/qml/metawatch-digital-config.qml
blob: f0f2e91f6353d36f6156a5311c155ca34b93ad3d (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import QtQuick 1.1
import com.nokia.meego 1.1
import com.javispedro.sowatch 1.0

Column {
	property string configKey;

	Item {
		id: hourModeItem
		width: parent.width
		height: UiConstants.ListItemHeightDefault

		GConfKey {
			id: hourModeKey
			key: configKey + "/24h-mode"
			value: hourModeSwitch.checked
		}
		Label {
			text: qsTr("24-hour clock mode")
			font: UiConstants.TitleFont
			anchors.verticalCenter: parent.verticalCenter
			anchors.left: parent.left
		}
		Switch {
			id: hourModeSwitch
			anchors.verticalCenter: parent.verticalCenter
			anchors.right: parent.right
			checked: hourModeKey.value
		}
	}

	Item {
		id: dayMonthOrderItem
		width: parent.width
		height: UiConstants.ListItemHeightDefault

		GConfKey {
			id: dayMonthOrderKey
			key: configKey + "/day-month-order"
			value: dayMonthOrderSwitch.checked
		}
		Label {
			text: qsTr("Use DD/MM instead of MM/DD")
			font: UiConstants.TitleFont
			anchors.verticalCenter: parent.verticalCenter
			anchors.left: parent.left
		}
		Switch {
			id: dayMonthOrderSwitch
			anchors.verticalCenter: parent.verticalCenter
			anchors.right: parent.right
			checked: dayMonthOrderKey.value
		}
	}
}