summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-11-19 12:56:16 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-11-19 12:58:48 (GMT)
commit10221602edb39b7c7ed9e0c9608f64a539adcdec (patch)
tree9d20834b9778191fa23121b3c2695b611f04322f /tests
parent52ddc754b2426806fe9fa8737ce942dd234c76a5 (diff)
downloadQt-10221602edb39b7c7ed9e0c9608f64a539adcdec.zip
Qt-10221602edb39b7c7ed9e0c9608f64a539adcdec.tar.gz
Qt-10221602edb39b7c7ed9e0c9608f64a539adcdec.tar.bz2
On main window, the sizegrip visibility was not correctly updated
Task-number: QTBUG-4334 Reviewed-by: ogoffart
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qstatusbar/tst_qstatusbar.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qstatusbar/tst_qstatusbar.cpp b/tests/auto/qstatusbar/tst_qstatusbar.cpp
index 9774559..92d9185 100644
--- a/tests/auto/qstatusbar/tst_qstatusbar.cpp
+++ b/tests/auto/qstatusbar/tst_qstatusbar.cpp
@@ -77,6 +77,7 @@ private slots:
void insertPermanentWidget();
void setSizeGripEnabled();
void task194017_hiddenWidget();
+ void QTBUG4334_hiddenOnMaximizedWindow();
private:
QStatusBar *testWidget;
@@ -257,6 +258,19 @@ void tst_QStatusBar::task194017_hiddenWidget()
QVERIFY(!label->isVisible());
}
+void tst_QStatusBar::QTBUG4334_hiddenOnMaximizedWindow()
+{
+ QMainWindow main;
+ QStatusBar statusbar;
+ statusbar.setSizeGripEnabled(true);
+ main.setStatusBar(&statusbar);
+ main.showMaximized();
+ QTest::qWaitForWindowShown(&main);
+ QVERIFY(!statusbar.findChild<QSizeGrip*>()->isVisible());
+ main.showNormal();
+ QTest::qWaitForWindowShown(&main);
+ QVERIFY(statusbar.findChild<QSizeGrip*>()->isVisible());
+}
QTEST_MAIN(tst_QStatusBar)
#include "tst_qstatusbar.moc"