aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/src/concepts/positioning/anchors.qdoc
diff options
context:
space:
mode:
authorJohanna Aijala <johanna.aijala@digia.com>2013-02-21 09:17:06 +0200
committerJohanna Aijala <johanna.aijala@digia.com>2013-02-21 09:21:34 +0200
commitd9e4b5c1820e62700756ede2ef5290baccc3c1b2 (patch)
treecc6975c1bd3ea86e4b7e5373560603e5165b7ff4 /src/quick/doc/src/concepts/positioning/anchors.qdoc
parentf4d4689d3c09cb4eae30be892be426d4fa185ed4 (diff)
parentfb7ab18fa799032f37fd6f78ab34b76aff91ed6c (diff)
Merge branch 'stable' into release
Diffstat (limited to 'src/quick/doc/src/concepts/positioning/anchors.qdoc')
-rw-r--r--src/quick/doc/src/concepts/positioning/anchors.qdoc11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/quick/doc/src/concepts/positioning/anchors.qdoc b/src/quick/doc/src/concepts/positioning/anchors.qdoc
index bec0949fb3..d0a14f7392 100644
--- a/src/quick/doc/src/concepts/positioning/anchors.qdoc
+++ b/src/quick/doc/src/concepts/positioning/anchors.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
@@ -140,7 +140,8 @@ carefully ordered, or they may produce unexpected outcomes. The following exampl
\table
\row
\li
- \badcode
+ \code
+ //bad code
Rectangle {
width: 50
anchors.left: parent.left
@@ -185,7 +186,8 @@ conditional bindings, as this can lead to the ordering issue described above. In
the Rectangle will eventually grow to the full width of its parent, because both left and right anchors
will be simultaneously set during binding update.
-\badcode
+\code
+//bad code
Rectangle {
width: 50; height: 50
anchors.left: state == "right" ? undefined : parent.left;
@@ -201,7 +203,8 @@ ordering issues internally.
For performance reasons, you can only anchor an item to its siblings and direct parent. For example,
the following anchor is invalid and would produce a warning:
-\badcode
+\code
+//bad code
Item {
id: group1
Rectangle { id: rect1; ... }