summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2011-04-28 14:06:17 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2011-04-28 14:07:31 (GMT)
commit7a5e3b9e336efabcf0af1fba1feecf49d000331f (patch)
treef0b3514f0dec1b014ab086b0fb244f7113588ef5
parentfee052e3e37b3335fe563cb8a1881bf59f9e25d0 (diff)
downloadQt-7a5e3b9e336efabcf0af1fba1feecf49d000331f.zip
Qt-7a5e3b9e336efabcf0af1fba1feecf49d000331f.tar.gz
Qt-7a5e3b9e336efabcf0af1fba1feecf49d000331f.tar.bz2
Fix tst_Q3ProgressBar::setProgress()
Reviewed-by: Jan-Arve
-rw-r--r--tests/auto/q3progressbar/tst_q3progressbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/q3progressbar/tst_q3progressbar.cpp b/tests/auto/q3progressbar/tst_q3progressbar.cpp
index 745e2d5..23f3405 100644
--- a/tests/auto/q3progressbar/tst_q3progressbar.cpp
+++ b/tests/auto/q3progressbar/tst_q3progressbar.cpp
@@ -106,7 +106,7 @@ void tst_Q3ProgressBar::setProgress()
{
MyCustomProgressBar * m_progressBar = new MyCustomProgressBar();
m_progressBar->show();
- QApplication::processEvents();
+ QTest::qWaitForWindowShown(m_progressBar);
//case with total steps = 0
m_progressBar->setTotalSteps(0);