@@ -45,24 +45,44 @@ LocalComponents.Page {
4545 id: tz
4646 objectName: "tz"
4747 property QtObject tzData: null
48+ readonly property bool currentTz: !!tzData ? selectedTimeZone === tzData.id : false
4849
4950 Label {
5051 id: cityLabel
5152 text: !!tzData ? tzData.city : ""
5253 anchors.left: parent.left
5354 anchors.top: parent.top
55+ font.bold: tz.currentTz ? true : false
5456 }
5557 Label {
5658 id: timeLabel
5759 text: !!tzData ? tzData.time : ""
5860 anchors.right: parent.right
5961 anchors.top: parent.top
62+ font.bold: tz.currentTz ? true : false
6063 }
64+ Label {
65+ id: countryLabel
66+ text: !!tzData ? tzData.country : ""
67+ anchors.left: parent.left
68+ anchors.top: cityLabel.bottom
69+ fontSize: "x-small"
70+ }
71+
6172 Label {
6273 id: abbrevLabel
6374 text: !!tzData ? tzData.abbreviation : ""
6475 anchors.right: parent.right
6576 anchors.top: timeLabel.bottom
77+ fontSize: "x-small"
78+ }
79+
80+ MouseArea {
81+ anchors.fill: parent
82+ onClicked: {
83+ tzModel.selectedZoneId = tzData.id
84+ print("Selected tz: " + selectedTimeZone)
85+ }
6686 }
6787 }
6888 }
@@ -100,10 +120,9 @@ LocalComponents.Page {
100120 anchors.right: parent.right
101121
102122 Repeater {
103− id: mainMenu
104−
123+ id: tzList
105124 model: tzFilterModel
106−
125+ property int selectedIndex
107126 delegate: Loader {
108127 id: loader
109128 anchors.left: !!parent ? parent.left : undefined
@@ -125,6 +144,7 @@ LocalComponents.Page {
125144 id: forwardButton
126145 LocalComponents.StackButton {
127146 text: i18n.tr("Next")
147+ enabled: selectedTimeZone != ""
128148 onClicked: pageStack.next()
129149 }
130150 }