summaryrefslogtreecommitdiffstats
path: root/tests/auto/cpptest/q3dbars-modelproxy/tst_proxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/cpptest/q3dbars-modelproxy/tst_proxy.cpp')
-rw-r--r--tests/auto/cpptest/q3dbars-modelproxy/tst_proxy.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/cpptest/q3dbars-modelproxy/tst_proxy.cpp b/tests/auto/cpptest/q3dbars-modelproxy/tst_proxy.cpp
index dfeee506..18fa0296 100644
--- a/tests/auto/cpptest/q3dbars-modelproxy/tst_proxy.cpp
+++ b/tests/auto/cpptest/q3dbars-modelproxy/tst_proxy.cpp
@@ -258,7 +258,9 @@ void tst_proxy::multiMatch()
graph.addSeries(series);
- QCoreApplication::processEvents();
+ QSignalSpy spy(graph.valueAxis(), SIGNAL(maxChanged(float)));
+ spy.wait(1000);
+
QCOMPARE(graph.valueAxis()->max(), 6.5f);
m_proxy->setMultiMatchBehavior(QItemModelBarDataProxy::MMBFirst);
QCoreApplication::processEvents();