summaryrefslogtreecommitdiff
path: root/tests/auto/qboxlayout
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@sosco.com>2009-10-27 16:42:31 +0100
committerShane Kearns <shane.kearns@sosco.com>2009-10-27 16:42:31 +0100
commitf80dca1e0f035807e5e6a984aec1768519f4d467 (patch)
treea8b96ce625a4dff96dc458ee67281dd3fc711a39 /tests/auto/qboxlayout
parent40ad4bf9bbfef57e63a51a619cf8817a28a3edd2 (diff)
downloadqt4-tools-f80dca1e0f035807e5e6a984aec1768519f4d467.tar.gz
Fix tst_QBoxLayout::setGeometry failure on S60 3.x
The S60 style posts a LayoutRequest event when a widget is shown, so that it can draw the focus rectangle around the widget that has keyboard focus. Although lay2->setGeometry was working correctly, processEvents() caused the outer layout to be re-laid out (which expands the inner layout and QDial to fill the available space). The processEvents() call is not necessary for the test case, so it can be removed. Reviewed-by: Jan-Arve
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 7ff444b5f9..8887288001 100644
--- a/tests/auto/qboxlayout/tst_qboxlayout.cpp
+++ b/tests/auto/qboxlayout/tst_qboxlayout.cpp
@@ -211,7 +211,6 @@ void tst_QBoxLayout::setGeometry()
QRect newGeom(0, 0, 70, 70);
lay2->setGeometry(newGeom);
- QApplication::processEvents();
QVERIFY2(newGeom.contains(dial->geometry()), "dial->geometry() should be smaller and within newGeom");
}