Release mouse buttons after double click
Otherwise, the button state maintained by Qt when using the offscreen plugin is not reset, breaking following tests. Pick-to: 6.2 Task-number: QTBUG-97964 Change-Id: Ib37fd038e214863e1e316dc3d41e9d28c157b1f8 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: David Skoland <david.skoland@qt.io>bb10
parent
0babdac537
commit
9151ab44bc
|
|
@ -788,6 +788,7 @@ void tst_QTabBar::tabBarClicked()
|
|||
QCOMPARE(clickSpy.takeFirst().takeFirst().toInt(), 0);
|
||||
QCOMPARE(doubleClickSpy.count(), 1);
|
||||
QCOMPARE(doubleClickSpy.takeFirst().takeFirst().toInt(), 0);
|
||||
QTest::mouseRelease(&tabBar, button, {}, tabPos);
|
||||
|
||||
const QPoint barPos(tabBar.tabRect(0).right() + 5, tabBar.tabRect(0).center().y());
|
||||
|
||||
|
|
@ -801,6 +802,7 @@ void tst_QTabBar::tabBarClicked()
|
|||
QCOMPARE(clickSpy.takeFirst().takeFirst().toInt(), -1);
|
||||
QCOMPARE(doubleClickSpy.count(), 1);
|
||||
QCOMPARE(doubleClickSpy.takeFirst().takeFirst().toInt(), -1);
|
||||
QTest::mouseRelease(&tabBar, button, {}, barPos);
|
||||
|
||||
button = Qt::MouseButton(button << 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue