Skip to content

Commit

Permalink
tests: skip tst_QTouchEvent::multiPointRawEventTranslationOnTouchPad(…
Browse files Browse the repository at this point in the history
…) on Wayland

QWindow::requestActivate() is not supported.

Task-number: QTBUG-107158
Pick-to: 6.4 6.2
Change-Id: I047337d736ff10693d98075e2636028225162765
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
  • Loading branch information
liangqi committed Oct 14, 2022
1 parent f990c25 commit f2aa047
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/auto/gui/kernel/qtouchevent/tst_qtouchevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <QtGui/private/qeventpoint_p.h>
#include <private/qhighdpiscaling_p.h>
#include <private/qpointingdevice_p.h>
#include <private/qguiapplication_p.h>
#include <qpa/qplatformintegration.h>

Q_LOGGING_CATEGORY(lcTests, "qt.gui.tests")

Expand Down Expand Up @@ -1129,6 +1131,9 @@ void tst_QTouchEvent::multiPointRawEventTranslationOnTouchPad()
QSKIP("The macOS mouse cursor interferes with this test can cannot be moved away");
#endif

if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
QSKIP("QWindow::requestActivate() is not supported.");

tst_QTouchEventWidget touchWidget;
touchWidget.setObjectName("touchWidget");
touchWidget.setWindowTitle(QTest::currentTestFunction());
Expand Down

0 comments on commit f2aa047

Please sign in to comment.