diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 2957dfac44..91a0b58e90 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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 ) ######################################################## diff --git a/tests/test_virtual_desktops.cpp b/tests/test_virtual_desktops.cpp index b28324edf2..4f8b2b775d 100644 --- a/tests/test_virtual_desktops.cpp +++ b/tests/test_virtual_desktops.cpp @@ -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());