diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-03-31 04:26:52 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-03-31 04:31:40 (GMT) |
commit | 8ee60825b4fa864ef0f826e6452a6340ed8ebb86 (patch) | |
tree | a08c0bebfe8e7d523591b4be1330c4bd78ea6377 /examples | |
parent | 6905c23c8363ce3f6698b0bc81dc81eef0f8de20 (diff) | |
download | Qt-8ee60825b4fa864ef0f826e6452a6340ed8ebb86.zip Qt-8ee60825b4fa864ef0f826e6452a6340ed8ebb86.tar.gz Qt-8ee60825b4fa864ef0f826e6452a6340ed8ebb86.tar.bz2 |
Minor cleanup.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/clocks/clocks.qml | 7 | ||||
-rw-r--r-- | examples/declarative/clocks/content/Clock.qml | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/examples/declarative/clocks/clocks.qml b/examples/declarative/clocks/clocks.qml index 624748a..c5aa1dc 100644 --- a/examples/declarative/clocks/clocks.qml +++ b/examples/declarative/clocks/clocks.qml @@ -2,12 +2,11 @@ import Qt 4.6 import "content" Rectangle { - width: childrenRect.width - height: childrenRect.height + width: 640; height: 240 color: "#646464" - Grid { - columns: 3 + Row { + anchors.centerIn: parent Clock { city: "New York"; shift: -4 } Clock { city: "Mumbai"; shift: 5.5 } Clock { city: "Tokyo"; shift: 9 } diff --git a/examples/declarative/clocks/content/Clock.qml b/examples/declarative/clocks/content/Clock.qml index 75a1cf5..90c6be8 100644 --- a/examples/declarative/clocks/content/Clock.qml +++ b/examples/declarative/clocks/content/Clock.qml @@ -74,7 +74,7 @@ Item { } Text { - id: cityLabel; font.bold: true; font.pixelSize: 14; y:200; color: "white" - anchors.horizontalCenter: parent.horizontalCenter + id: cityLabel; font.bold: true; font.pixelSize: 14; y: 200; color: "white" + anchors.horizontalCenter: parent.horizontalCenter; style: Text.Raised; styleColor: "black" } } |