Get testVirtualDesktops to compile
This commit is contained in:
parent
202bc2fbf9
commit
d91f53c7c8
2 changed files with 6 additions and 4 deletions
|
@ -29,9 +29,11 @@ set( testVirtualDesktops_SRCS
|
|||
kde4_add_unit_test( testVirtualDesktops TESTNAME kwin-TestVirtualDesktops ${testVirtualDesktops_SRCS} )
|
||||
|
||||
target_link_libraries( testVirtualDesktops
|
||||
${KDE4_KDEUI_LIBS}
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTTEST_LIBRARY}
|
||||
${KDE4Support_LIBRARIES}
|
||||
${Qt5Test_LIBRARIES}
|
||||
${Qt5Widgets_LIBRARIES}
|
||||
KF5::KI18n
|
||||
KF5::XmlGui
|
||||
)
|
||||
|
||||
########################################################
|
||||
|
|
|
@ -568,7 +568,7 @@ void TestVirtualDesktops::switchToShortcuts()
|
|||
QCOMPARE(vds->current(), i);
|
||||
}
|
||||
// test switchTo with incorrect data in QAction
|
||||
KAction *action = keys->addAction(QStringLiteral("wrong"), vds, SLOT(slotSwitchTo()));
|
||||
QAction *action = keys->addAction(QStringLiteral("wrong"), vds, SLOT(slotSwitchTo()));
|
||||
action->trigger();
|
||||
// should still be on max
|
||||
QCOMPARE(vds->current(), vds->maximum());
|
||||
|
|
Loading…
Reference in a new issue