summaryrefslogtreecommitdiff
path: root/tests/auto/qboxlayout
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-08-06 13:18:24 +0200
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-08-06 13:34:07 +0200
commit620e7d82b34624f6765daf32917b12ab0e2249b0 (patch)
tree1efc12b1077d5646fbfed5490fdd41e9dabea3d8 /tests/auto/qboxlayout
parentfbef83bc1adb03acd9dcb8dc6619ff77add8bd93 (diff)
downloadqt4-tools-620e7d82b34624f6765daf32917b12ab0e2249b0.tar.gz
Make sure QWidget::setStyle() relayouts its children.
Changing a style on a widget should invalidate the widget's layout, since the layouts spacings and margins may depend on the style. One optimization could be to check to see if the spacing and margins have changed due to the style change, but the old style is not available in changeEvent, so we'll keep it simple for now. RevBy: paul Task: 256986
Diffstat (limited to 'tests/auto/qboxlayout')
-rw-r--r--tests/auto/qboxlayout/tst_qboxlayout.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/qboxlayout/tst_qboxlayout.cpp b/tests/auto/qboxlayout/tst_qboxlayout.cpp
index 642bc77331..5803985cbe 100644
--- a/tests/auto/qboxlayout/tst_qboxlayout.cpp
+++ b/tests/auto/qboxlayout/tst_qboxlayout.cpp
@@ -240,7 +240,6 @@ void tst_QBoxLayout::setStyleShouldChangeSpacing()
window->setStyle(style2);
QTest::qWait(100);
spacing = pb2->geometry().left() - pb1->geometry().right() - 1;
- QEXPECT_FAIL("", "Fix for next minor release", Continue);
QCOMPARE(spacing, 10);
delete window;