@@ -45,24 +45,44 @@ LocalComponents.Page {
46 objectName: "tz"
46 objectName: "tz"
47 property QtObject tzData: null
47 property QtObject tzData: null
48+ readonly property bool currentTz: !!tzData ? selectedTimeZone === tzData.id : false
50 id: cityLabel
51 id: cityLabel
51 text: !!tzData ? tzData.city : ""
52 text: !!tzData ? tzData.city : ""
52 anchors.left: parent.left
53 anchors.left: parent.left
53 anchors.top: parent.top
54 anchors.top: parent.top
55+ font.bold: tz.currentTz ? true : false
56 id: timeLabel
58 id: timeLabel
57 text: !!tzData ? tzData.time : ""
59 text: !!tzData ? tzData.time : ""
58 anchors.right: parent.right
60 anchors.right: parent.right
59 anchors.top: parent.top
61 anchors.top: parent.top
62+ font.bold: tz.currentTz ? true : false
66+ text: !!tzData ? tzData.country : ""
67+ anchors.left: parent.left
68+ anchors.top: cityLabel.bottom
62 id: abbrevLabel
73 id: abbrevLabel
63 text: !!tzData ? tzData.abbreviation : ""
74 text: !!tzData ? tzData.abbreviation : ""
64 anchors.right: parent.right
75 anchors.right: parent.right
65 anchors.top: timeLabel.bottom
76 anchors.top: timeLabel.bottom
83+ tzModel.selectedZoneId = tzData.id
84+ print("Selected tz: " + selectedTimeZone)
@@ -100,10 +120,9 @@ LocalComponents.Page {
100 anchors.right: parent.right
120 anchors.right: parent.right
102 Repeater {
122 Repeater {
103− id: mainMenu
123+ id: tzList
105 model: tzFilterModel
124 model: tzFilterModel
106−
125+ property int selectedIndex
107 delegate: Loader {
126 delegate: Loader {
108 id: loader
127 id: loader
109 anchors.left: !!parent ? parent.left : undefined
128 anchors.left: !!parent ? parent.left : undefined
@@ -125,6 +144,7 @@ LocalComponents.Page {
125 id: forwardButton
144 id: forwardButton
126 LocalComponents.StackButton {
145 LocalComponents.StackButton {
127 text: i18n.tr("Next")
146 text: i18n.tr("Next")
147+ enabled: selectedTimeZone != ""
128 onClicked: pageStack.next()
148 onClicked: pageStack.next()