diff options
author | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-09-30 15:25:34 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-10-06 09:28:58 (GMT) |
commit | 89ea5d0cc0b00a1d4e8f3e700b86f168cf4437ed (patch) | |
tree | 997fbe5e48814e706160a4a4bab00100137e492d /tests/auto/qgraphicsanchorlayout | |
parent | 0536b996759ef367e784310f472089eec583213f (diff) | |
download | Qt-89ea5d0cc0b00a1d4e8f3e700b86f168cf4437ed.zip Qt-89ea5d0cc0b00a1d4e8f3e700b86f168cf4437ed.tar.gz Qt-89ea5d0cc0b00a1d4e8f3e700b86f168cf4437ed.tar.bz2 |
QGraphicsAnchorLayout: Fix creation of internal layout anchors
Since the AnchorData cleanup commit (c974aca8) all anchor initialization
is being done by refreshSizeHints. However that method was not able
to properly initialize the internal layout anchors.
This commit refactors that method both to add the functionality and
improve readability.
Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Diffstat (limited to 'tests/auto/qgraphicsanchorlayout')
-rw-r--r-- | tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp b/tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp index 4ad48c7..91e5bb3 100644 --- a/tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp +++ b/tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp @@ -1271,7 +1271,7 @@ void tst_QGraphicsAnchorLayout::sizePolicy() w1->adjustSize(); QCOMPARE(l->effectiveSizeHint(Qt::MinimumSize), QSizeF(0, 0)); - QCOMPARE(l->effectiveSizeHint(Qt::PreferredSize), QSizeF(0, 0)); + QCOMPARE(l->effectiveSizeHint(Qt::PreferredSize), QSizeF(100, 100)); QCOMPARE(l->effectiveSizeHint(Qt::MaximumSize), QSizeF(100, 100)); delete p; |