tst_QGestureRecognizer::swipeGesture set FramelessWindowHint
tst_QGestureRecognizer::swipeGesture() is flaky as sometimes the gesture event is being sent before the widget's position has been updated. The gesture starts in the window frame. Set flag Qt::FramelessWindowFrame to prevent this from happening. Fix flakiness on Opensuse 15 Pick-to: 6.9 6.8 Change-Id: I794b022b5a51146ddfa7d6029509c6fa43b9aad6 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
bddc019829
commit
6dc0e59393
@ -256,6 +256,7 @@ void tst_QGestureRecognizer::swipeGesture()
|
||||
const Qt::GestureType gestureType = Qt::SwipeGesture;
|
||||
TestWidget widget(GestureTypeVector(1, gestureType));
|
||||
widget.setWindowTitle(QTest::currentTestFunction());
|
||||
widget.setWindowFlag(Qt::FramelessWindowHint);
|
||||
widget.show();
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&widget));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user