From bc5b70046e84c6e5a33a19bd2e64e626fdf0579e Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 9 Aug 2012 18:50:23 +0200 Subject: first UI editable settings! --- metawatch/qml/metawatch-digital-config.qml | 55 ++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 metawatch/qml/metawatch-digital-config.qml (limited to 'metawatch/qml') diff --git a/metawatch/qml/metawatch-digital-config.qml b/metawatch/qml/metawatch-digital-config.qml new file mode 100644 index 0000000..f0f2e91 --- /dev/null +++ b/metawatch/qml/metawatch-digital-config.qml @@ -0,0 +1,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 + } + } +} -- cgit v1.2.3