diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-09 08:09:39 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-09 08:10:44 (GMT) |
commit | 2cbc5ee1bc89be2f174566f35eb89b493ba75c69 (patch) | |
tree | fb58bf31671b33860ea93042b11392df7fcc5b01 /tests/auto/qgraphicsitem | |
parent | d71d5ffd356342e55f09b31f5a702926f86994eb (diff) | |
download | Qt-2cbc5ee1bc89be2f174566f35eb89b493ba75c69.zip Qt-2cbc5ee1bc89be2f174566f35eb89b493ba75c69.tar.gz Qt-2cbc5ee1bc89be2f174566f35eb89b493ba75c69.tar.bz2 |
Make the QGraphicsViews more rebost regarding slow window manager
Diffstat (limited to 'tests/auto/qgraphicsitem')
-rw-r--r-- | tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp index cbb0802..b8061da 100644 --- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp +++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp @@ -60,6 +60,9 @@ #include <QVBoxLayout> #include <QGraphicsEffect> +#include "../../shared/util.h" + + //TESTED_CLASS= //TESTED_FILES= @@ -1933,7 +1936,7 @@ void tst_QGraphicsItem::zValue() QApplication::sendPostedEvents(); //glib workaround #endif - QVERIFY(!_paintedItems.isEmpty()); + QTRY_VERIFY(!_paintedItems.isEmpty()); QVERIFY((_paintedItems.size() % 4) == 0); for (int i = 0; i < 3; ++i) QVERIFY(_paintedItems.at(i)->zValue() < _paintedItems.at(i + 1)->zValue()); @@ -2917,6 +2920,7 @@ void tst_QGraphicsItem::hoverEventsGenerateRepaints() qApp->processEvents(); qApp->processEvents(); + QTRY_COMPARE(tester->repaints, 1); // Send a hover enter event QGraphicsSceneHoverEvent hoverEnterEvent(QEvent::GraphicsSceneHoverEnter); @@ -7823,7 +7827,7 @@ void tst_QGraphicsItem::panel() QEvent activate(QEvent::WindowActivate); QEvent deactivate(QEvent::WindowDeactivate); - + QApplication::sendEvent(&scene, &activate); // No previous activation, so the scene is active. |