summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/column/column.qml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/declarative/column/column.qml')
-rw-r--r--doc/src/snippets/declarative/column/column.qml16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/src/snippets/declarative/column/column.qml b/doc/src/snippets/declarative/column/column.qml
index 6d378bb..18e95e9 100644
--- a/doc/src/snippets/declarative/column/column.qml
+++ b/doc/src/snippets/declarative/column/column.qml
@@ -39,7 +39,7 @@
****************************************************************************/
//! [document]
-import Qt 4.7
+import QtQuick 1.0
Item {
width: 310; height: 170
@@ -47,21 +47,21 @@ Item {
Column {
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
-
+
spacing: 5
Rectangle { color: "lightblue"; radius: 10.0
width: 300; height: 50
- Text { anchors.fill: parent
- font.pointSize: 32; text: "Books" } }
+ Text { anchors.centerIn: parent
+ font.pointSize: 24; text: "Books" } }
Rectangle { color: "gold"; radius: 10.0
width: 300; height: 50
- Text { anchors.fill: parent
- font.pointSize: 32; text: "Music" } }
+ Text { anchors.centerIn: parent
+ font.pointSize: 24; text: "Music" } }
Rectangle { color: "lightgreen"; radius: 10.0
width: 300; height: 50
- Text { anchors.fill: parent
- font.pointSize: 32; text: "Movies" } }
+ Text { anchors.centerIn: parent
+ font.pointSize: 24; text: "Movies" } }
}
}
//! [document]