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} )
|
kde4_add_unit_test( testVirtualDesktops TESTNAME kwin-TestVirtualDesktops ${testVirtualDesktops_SRCS} )
|
||||||
|
|
||||||
target_link_libraries( testVirtualDesktops
|
target_link_libraries( testVirtualDesktops
|
||||||
${KDE4_KDEUI_LIBS}
|
${KDE4Support_LIBRARIES}
|
||||||
${QT_QTCORE_LIBRARY}
|
${Qt5Test_LIBRARIES}
|
||||||
${QT_QTTEST_LIBRARY}
|
${Qt5Widgets_LIBRARIES}
|
||||||
|
KF5::KI18n
|
||||||
|
KF5::XmlGui
|
||||||
)
|
)
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
|
|
|
@ -568,7 +568,7 @@ void TestVirtualDesktops::switchToShortcuts()
|
||||||
QCOMPARE(vds->current(), i);
|
QCOMPARE(vds->current(), i);
|
||||||
}
|
}
|
||||||
// test switchTo with incorrect data in QAction
|
// 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();
|
action->trigger();
|
||||||
// should still be on max
|
// should still be on max
|
||||||
QCOMPARE(vds->current(), vds->maximum());
|
QCOMPARE(vds->current(), vds->maximum());
|
||||||
|
|
Loading…
Reference in a new issue