aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickwindow
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-02-19 12:20:20 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-20 12:51:38 +0100
commit6df89c3b9d4e88d600c80aa3f39718fcab14fc6f (patch)
treec40745fea6fa386c16c568f35a0298e96121db66 /tests/auto/quick/qquickwindow
parent691469c05c882fb290546484448df684976f9233 (diff)
Add a signal for syncing external animation systems
[ChangeLog] QQuickWindow will now emit the afterAnimating() signal from the gui thread before each scenegraph sync request. Change-Id: I4897c82f75066238e781455d4fce4fb6bbe2558e Reviewed-by: Pasi Keränen <pasi.keranen@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/quick/qquickwindow')
-rw-r--r--tests/auto/quick/qquickwindow/tst_qquickwindow.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
index bdd70f6a6e..edde8d2134 100644
--- a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
+++ b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
@@ -351,6 +351,8 @@ private slots:
void cursor();
#endif
+ void animatingSignal();
+
private:
QTouchDevice *touchDevice;
QTouchDevice *touchDeviceWithVelocity;
@@ -1657,6 +1659,19 @@ void tst_qquickwindow::qobjectEventFilter_mouse()
QTest::mouseRelease(&window, Qt::LeftButton, Qt::NoModifier, point);
}
+void tst_qquickwindow::animatingSignal()
+{
+ QQuickWindow window;
+ window.setGeometry(100, 100, 300, 200);
+
+ QSignalSpy spy(&window, SIGNAL(afterAnimating()));
+
+ window.show();
+ QTRY_VERIFY(window.isExposed());
+
+ QTRY_VERIFY(spy.count() > 1);
+}
+
QTEST_MAIN(tst_qquickwindow)
#include "tst_qquickwindow.moc"