diff options
Diffstat (limited to 'tests/benchmarks/gui/styles/qstylesheetstyle')
-rw-r--r-- | tests/benchmarks/gui/styles/qstylesheetstyle/main.cpp | 2 | ||||
-rw-r--r-- | tests/benchmarks/gui/styles/qstylesheetstyle/qstylesheetstyle.pro | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/benchmarks/gui/styles/qstylesheetstyle/main.cpp b/tests/benchmarks/gui/styles/qstylesheetstyle/main.cpp index e4d5999c62..bb5399707c 100644 --- a/tests/benchmarks/gui/styles/qstylesheetstyle/main.cpp +++ b/tests/benchmarks/gui/styles/qstylesheetstyle/main.cpp @@ -173,7 +173,7 @@ void tst_qstylesheetstyle::grid() w->setStyleSheet("/* */"); if(show) { w->show(); - QTest::qWaitForWindowShown(w); + QTest::qWaitForWindowExposed(w); QApplication::flush(); QApplication::processEvents(); QTest::qWait(30); diff --git a/tests/benchmarks/gui/styles/qstylesheetstyle/qstylesheetstyle.pro b/tests/benchmarks/gui/styles/qstylesheetstyle/qstylesheetstyle.pro index 707731f4d1..5aef3520c0 100644 --- a/tests/benchmarks/gui/styles/qstylesheetstyle/qstylesheetstyle.pro +++ b/tests/benchmarks/gui/styles/qstylesheetstyle/qstylesheetstyle.pro @@ -5,4 +5,3 @@ TARGET = tst_bench_qstylesheetstyle CONFIG += release SOURCES += main.cpp -DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 |