• Sebastian Kügler's avatar
    parent qaction in test · 1d37b92d
    Sebastian Kügler authored
    Summary:
    My compiler doesn't seem to like this constructor, it bails out with the
    following error:
    
    /home/sebas/kf5/src/kde/workspace/kwin/autotests/integration/globalshortcuts_test.cpp:
    In member function ‘void GlobalShortcutsTest::testConsumedShift()’:
    /home/sebas/kf5/src/kde/workspace/kwin/autotests/integration/globalshortcuts_test.cpp:79:40:
    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: https://phabricator.kde.org/D2782
    1d37b92d
globalshortcuts_test.cpp 3.34 KB