aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-03-13 13:33:45 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2017-03-13 14:47:33 +0000
commit610e34bcaa0de29d38f5fae4d169da7efc79dc5f (patch)
tree0ac123206b573a865814029694a94b4d293ff02f /examples
parente89722d444c303897cdd7761d4fd13a98c48ec91 (diff)
Wearable: center align the world clocks
Change-Id: I9389597db13acee93e66ee6979fae5e2dd5a0e90 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml7
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml b/examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml
index 64f92f60..a6e67e8c 100644
--- a/examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml
+++ b/examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml
@@ -54,9 +54,6 @@ import "../Style"
Item {
id: clock
- width: UIStyle.visibleDiameter
- height: UIStyle.visibleDiameter
-
property int hours
property int minutes
property int seconds
@@ -86,9 +83,7 @@ Item {
}
Item {
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.top: parent.top
- anchors.topMargin: 2
+ anchors.centerIn: parent
width: 200
height: 220