summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout.cpp
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-08-26 12:13:17 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-08-26 12:14:10 (GMT)
commitd0f31c800b90a57c622d5d0d41b6fc3c2f9f9b49 (patch)
tree83fea5048629e9249bc8fc3bd4a982dff76b800e /src/gui/graphicsview/qgraphicsanchorlayout.cpp
parentb5f00cdc0a63ea598d7af908240f0de5ac141262 (diff)
downloadQt-d0f31c800b90a57c622d5d0d41b6fc3c2f9f9b49.zip
Qt-d0f31c800b90a57c622d5d0d41b6fc3c2f9f9b49.tar.gz
Qt-d0f31c800b90a57c622d5d0d41b6fc3c2f9f9b49.tar.bz2
Fixes typo in doc and missing return in anchor layout
Reviewed-by: janarve
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout.cpp b/src/gui/graphicsview/qgraphicsanchorlayout.cpp
index 2894c59..b088f12 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout.cpp
+++ b/src/gui/graphicsview/qgraphicsanchorlayout.cpp
@@ -65,8 +65,9 @@
automatically added to the layout, and if items are removed, all their anchors will be
automatically removed
- \section1 Size Hints and Size Policies in QGraphicsLinearLayout
- QGraphicsLinearLayout respects each item's size hints and size policies. However it does
+ \section1 Size Hints and Size Policies in QGraphicsAnchorLayout
+
+ QGraphicsAnchorLayout respects each item's size hints and size policies. However it does
not respect stretch factors currently. This might change in the future, so please refrain
from using stretch factors in anchor layout to avoid any future regressions.
@@ -228,6 +229,7 @@ void QGraphicsAnchorLayout::setAnchorSpacing(const QGraphicsLayoutItem *firstIte
if (!d->setAnchorSize(firstItem, firstEdge, secondItem, secondEdge, &spacing)) {
qWarning("setAnchorSpacing: The anchor does not exist.");
+ return;
}
invalidate();
}