Commit 1d37b92d authored by Sebastian Kügler's avatar Sebastian Kügler

parent qaction in test

My compiler doesn't seem to like this constructor, it bails out with the
following error:

In member function ‘void GlobalShortcutsTest::testConsumedShift()’:
error: no matching function for call to ‘QAction::QAction()’
     QScopedPointer<QAction> action(new QAction);

Using this as first argument fixes the build on my machine.

Test Plan: screenedges test fails, others pass. (this screenedges test failure seems unrelated)

Reviewers: graesslin

Reviewed By: graesslin

Subscribers: luebking, kwin

Tags: #kwin

Differential Revision:
parent 38a59332
......@@ -76,7 +76,7 @@ void GlobalShortcutsTest::testConsumedShift()
// this test verifies that a shortcut with a consumed shift modifier triggers
// create the action
QScopedPointer<QAction> action(new QAction);
QScopedPointer<QAction> action(new QAction(nullptr));
action->setProperty("componentName", QStringLiteral(KWIN_NAME));
QSignalSpy triggeredSpy(, &QAction::triggered);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment