QGraphicsView tests: Prefer exposed over active
Makes the tests pass on Wayland. Task-number: QTBUG-62188 Change-Id: I5860c1ae6dd3d15632d827f4e357cb6c2cc9c5e3 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
ee4a604a2e
commit
4b5ff2be7c
@ -826,7 +826,7 @@ void tst_QFileSystemModel::sort()
|
||||
tree.setModel(myModel.data());
|
||||
tree.show();
|
||||
tree.resize(800, 800);
|
||||
QVERIFY(QTest::qWaitForWindowActive(&tree));
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&tree));
|
||||
tree.header()->setSortIndicator(1, Qt::DescendingOrder);
|
||||
tree.header()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
|
||||
QStringList dirsToOpen;
|
||||
|
@ -166,7 +166,7 @@ void tst_QGraphicsEffectSource::initTestCase()
|
||||
scene->addItem(item);
|
||||
view = new QGraphicsView(scene);
|
||||
view->show();
|
||||
QVERIFY(QTest::qWaitForWindowActive(view));
|
||||
QVERIFY(QTest::qWaitForWindowExposed(view));
|
||||
}
|
||||
|
||||
void tst_QGraphicsEffectSource::cleanupTestCase()
|
||||
|
@ -1826,7 +1826,7 @@ void tst_QGraphicsGridLayout::removeLayout()
|
||||
|
||||
QGraphicsView view(&scene);
|
||||
view.show();
|
||||
QVERIFY(QTest::qWaitForWindowActive(&view));
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&view));
|
||||
|
||||
QRectF r1 = textEdit->geometry();
|
||||
QRectF r2 = pushButton->geometry();
|
||||
|
@ -1518,7 +1518,7 @@ void tst_QGraphicsLinearLayout::removeLayout()
|
||||
|
||||
QGraphicsView view(&scene);
|
||||
view.show();
|
||||
QVERIFY(QTest::qWaitForWindowActive(&view));
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&view));
|
||||
|
||||
QRectF r1 = textEdit->geometry();
|
||||
QRectF r2 = pushButton->geometry();
|
||||
|
Loading…
Reference in New Issue
Block a user