summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel/qaction/tst_qaction.cpp
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-10-19 01:01:02 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-10-19 01:01:03 +0200
commitab5153aa0b09320dc5c96aa2b5a564ea1e6dbed3 (patch)
treebbb46d30b7a0b6122a8da1fba7cf8ac2a4b835a7 /tests/auto/widgets/kernel/qaction/tst_qaction.cpp
parent56e5e06ff2f3a2230bb7780c73c85b73f9aaa4f8 (diff)
parent52484cc4b6696c8a5c1f69125d81eb0cede8cdb2 (diff)
Merge remote-tracking branch 'origin/5.15' into dev
Diffstat (limited to 'tests/auto/widgets/kernel/qaction/tst_qaction.cpp')
-rw-r--r--tests/auto/widgets/kernel/qaction/tst_qaction.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/widgets/kernel/qaction/tst_qaction.cpp b/tests/auto/widgets/kernel/qaction/tst_qaction.cpp
index 0d62c2cd4b..1247f48dd0 100644
--- a/tests/auto/widgets/kernel/qaction/tst_qaction.cpp
+++ b/tests/auto/widgets/kernel/qaction/tst_qaction.cpp
@@ -35,6 +35,7 @@
#include <qaction.h>
#include <qmenu.h>
#include <qpa/qplatformtheme.h>
+#include <qpa/qplatformintegration.h>
#include <private/qguiapplication_p.h>
class tst_QAction : public QObject
@@ -409,6 +410,9 @@ void tst_QAction::task229128TriggeredSignalWhenInActiongroup()
void tst_QAction::repeat()
{
+ if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
+ QSKIP("Wayland: This fails. Figure out why.");
+
MyWidget testWidget(this);
testWidget.show();
QApplication::setActiveWindow(&testWidget);
@@ -484,6 +488,9 @@ void tst_QAction::disableShortcutsWithBlockedWidgets_data()
void tst_QAction::disableShortcutsWithBlockedWidgets()
{
+ if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
+ QSKIP("Window activation is not supported");
+
QMainWindow window;
QFETCH(Qt::ShortcutContext, shortcutContext);
@@ -528,6 +535,9 @@ protected:
// ShortcutOverride event first before passing it on as a normal KeyEvent.
void tst_QAction::shortcutFromKeyEvent()
{
+ if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
+ QSKIP("Wayland: This fails. Figure out why.");
+
ShortcutOverrideWidget testWidget;
QAction action;
action.setShortcut(Qt::Key_1);