Changeset View
Changeset View
Standalone View
Standalone View
applets/digital-clock/package/contents/ui/DigitalClock.qml
Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Line(s) | 290 | PropertyChanges { | |||
---|---|---|---|---|---|
296 | fontSizeMode: Text.Fit | 296 | fontSizeMode: Text.Fit | ||
297 | minimumPixelSize: dateLabel.minimumPixelSize | 297 | minimumPixelSize: dateLabel.minimumPixelSize | ||
298 | elide: Text.ElideRight | 298 | elide: Text.ElideRight | ||
299 | } | 299 | } | ||
300 | 300 | | |||
301 | PropertyChanges { | 301 | PropertyChanges { | ||
302 | target: dateLabel | 302 | target: dateLabel | ||
303 | 303 | | |||
304 | // this can be marginal bigger than contentHeight because of the horizontal fit | 304 | height: dateLabel.paintedHeight | ||
305 | height: sizehelper.contentHeight | | |||
306 | width: main.width | 305 | width: main.width | ||
307 | 306 | | |||
308 | fontSizeMode: Text.Fit | 307 | fontSizeMode: Text.Fit | ||
309 | minimumPixelSize: Math.min(0.7 * theme.smallestFont.pixelSize, timeLabel.height) | 308 | minimumPixelSize: Math.min(0.7 * theme.smallestFont.pixelSize, timeLabel.height) | ||
310 | elide: Text.ElideRight | 309 | elide: Text.ElideRight | ||
310 | wrapMode: Text.WordWrap | ||||
311 | } | 311 | } | ||
312 | 312 | | |||
313 | AnchorChanges { | 313 | AnchorChanges { | ||
314 | target: dateLabel | 314 | target: dateLabel | ||
315 | 315 | | |||
316 | anchors.top: labelsGrid.bottom | 316 | anchors.top: labelsGrid.bottom | ||
317 | anchors.horizontalCenter: labelsGrid.horizontalCenter | 317 | anchors.horizontalCenter: labelsGrid.horizontalCenter | ||
318 | } | 318 | } | ||
▲ Show 20 Lines • Show All 381 Lines • Show Last 20 Lines |