Changeset View
Changeset View
Standalone View
Standalone View
applets/digital-clock/package/contents/ui/DigitalClock.qml
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 104 | PropertyChanges { | |||
---|---|---|---|---|---|
108 | Layout.minimumWidth: contentItem.width | 108 | Layout.minimumWidth: contentItem.width | ||
109 | Layout.maximumWidth: Layout.minimumWidth | 109 | Layout.maximumWidth: Layout.minimumWidth | ||
110 | } | 110 | } | ||
111 | 111 | | |||
112 | PropertyChanges { | 112 | PropertyChanges { | ||
113 | target: contentItem | 113 | target: contentItem | ||
114 | 114 | | |||
115 | height: timeLabel.height + (main.showDate || timezoneLabel.visible ? 0.8 * timeLabel.height : 0) | 115 | height: timeLabel.height + (main.showDate || timezoneLabel.visible ? 0.8 * timeLabel.height : 0) | ||
116 | width: Math.max(labelsGrid.width, timezoneLabel.paintedWidth, dateLabel.paintedWidth) | 116 | width: Math.max(timeLabel.paintedWidth + (main.showDate ? timezoneLabel.paintedWidth : 0), | ||
117 | timezoneLabel.paintedWidth, dateLabel.paintedWidth) + units.smallSpacing * 2 | ||||
117 | } | 118 | } | ||
118 | 119 | | |||
119 | PropertyChanges { | 120 | PropertyChanges { | ||
120 | target: labelsGrid | 121 | target: labelsGrid | ||
121 | 122 | | |||
122 | rows: main.showDate ? 1 : 2 | 123 | rows: main.showDate ? 1 : 2 | ||
123 | } | 124 | } | ||
124 | 125 | | |||
▲ Show 20 Lines • Show All 575 Lines • Show Last 20 Lines |