20
20
import Ubuntu.Components 1.2
26
26
right: parent.right
30
property alias description: descriptionLabel.text
31
property alias high: highLabel.text
32
property alias low: lowLabel.text
29
height: collapsedHeight
30
objectName: "homeTempInfo"
36
target: homeTempInfoItem
37
height: collapsedHeight
47
target: homeTempInfoItem
48
height: expandedHeight
62
script: expandedInfo.active = true
65
easing.type: Easing.InOutQuad
66
properties: "height,opacity"
75
easing.type: Easing.InOutQuad
76
properties: "height,opacity"
79
script: expandedInfo.active = false
85
property int collapsedHeight: units.gu(14)
86
property int expandedHeight: collapsedHeight + units.gu(4) + (expandedInfo.item ? expandedInfo.item.height : 0)
88
property var modelData
33
90
property alias now: nowLabel.text
36
font.weight: Font.Light
38
text: i18n.tr("Today")
43
font.capitalization: Font.Capitalize
44
font.weight: Font.Normal
53
color: UbuntuColors.orange
54
font.pixelSize: units.gu(8)
55
101
font.weight: Font.Light
57
verticalAlignment: Text.AlignBottom // AlignBottom seems to put it at the top?
63
font.weight: Font.Light
69
font.weight: Font.Light
103
text: i18n.tr("Today")
108
font.capitalization: Font.Capitalize
109
font.weight: Font.Normal
111
text: modelData.condition
119
color: UbuntuColors.orange
120
font.pixelSize: units.gu(8)
121
font.weight: Font.Light
123
verticalAlignment: Text.AlignBottom // AlignBottom seems to put it at the top?
129
font.weight: Font.Light
136
font.weight: Font.Light
149
leftMargin: units.gu(2)
151
rightMargin: units.gu(2)
152
top: labelColumn.bottom
153
topMargin: units.gu(2)
157
source: "DayDelegateExtraInfo.qml"
159
property var modelData: {
162
// Remove the condition only for modelData
163
// as it is needed in todayData in the Column above
178
parent.state = parent.state === "normal" ? "expanded" : "normal"
179
// -2 as this is in header (not a delegate) and needs a fake index
180
locationPages.collapseOtherDelegates(-2)
186
easing.type: Easing.InOutQuad
190
Component.onCompleted: {
191
locationPages.collapseOtherDelegates.connect(function(otherIndex) {
192
// -2 as this is in header (not a delegate) and needs a fake index
193
if (homeTempInfoItem && typeof index !== "undefined" && otherIndex !== -2) {