1d959dea64
Most recently used virtual desktop chain is only used in the context of TabBox and therefore moved into this namespace. KWin uses one desktop chain for each activity. This is mapped by having multiple DesktopChains. In addition there is a DesktopChainManager which contains all those chains which are identified by a QString. The manager gets connected to the signals emitted by VirtualDesktopManager for changes in virtual desktops and to signals related to Activities emitted by Workspace. This means the manager is rather generic as it does not depend on any other components.
58 lines
2 KiB
CMake
58 lines
2 KiB
CMake
########################################################
|
|
# Test TabBox::ClientModel
|
|
########################################################
|
|
set( testTabBoxClientModel_SRCS
|
|
../clientmodel.cpp
|
|
../desktopmodel.cpp
|
|
../tabboxconfig.cpp
|
|
../tabboxhandler.cpp
|
|
test_tabbox_clientmodel.cpp
|
|
mock_declarative.cpp
|
|
mock_tabboxhandler.cpp
|
|
mock_tabboxclient.cpp
|
|
)
|
|
|
|
kde4_add_unit_test( testTabBoxClientModel TESTNAME kwin-testTabBoxClientModel ${testTabBoxClientModel_SRCS} )
|
|
|
|
target_link_libraries( testTabBoxClientModel ${KDE4_KDEUI_LIBS} ${QT_QTDECLARATIVE_LIBRARY} ${X11_LIBRARIES} ${QT_QTTEST_LIBRARY} )
|
|
|
|
########################################################
|
|
# Test TabBox::TabBoxHandler
|
|
########################################################
|
|
set( testTabBoxHandler_SRCS
|
|
../clientmodel.cpp
|
|
../desktopmodel.cpp
|
|
../tabboxconfig.cpp
|
|
../tabboxhandler.cpp
|
|
test_tabbox_handler.cpp
|
|
mock_declarative.cpp
|
|
mock_tabboxhandler.cpp
|
|
mock_tabboxclient.cpp
|
|
)
|
|
|
|
kde4_add_unit_test( testTabBoxHandler TESTNAME kwin-testTabBoxHandler ${testTabBoxHandler_SRCS} )
|
|
|
|
target_link_libraries( testTabBoxHandler ${KDE4_KDEUI_LIBS} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} ${QT_QTTEST_LIBRARY} ${X11_LIBRARIES} )
|
|
|
|
########################################################
|
|
# Test TabBox::TabBoxConfig
|
|
########################################################
|
|
set( testTabBoxConfig_SRCS
|
|
../tabboxconfig.cpp
|
|
test_tabbox_config.cpp
|
|
)
|
|
|
|
kde4_add_unit_test( testTabBoxConfig TESTNAME kwin-testTabBoxConfig ${testTabBoxConfig_SRCS} )
|
|
target_link_libraries( testTabBoxConfig ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} )
|
|
|
|
|
|
########################################################
|
|
# Test TabBox::DesktopChainManager
|
|
########################################################
|
|
set( testDesktopChain_SRCS
|
|
../desktopchain.cpp
|
|
test_desktopchain.cpp
|
|
)
|
|
|
|
kde4_add_unit_test( testDesktopChain TESTNAME kwin-testDesktopChain ${testDesktopChain_SRCS} )
|
|
target_link_libraries( testDesktopChain ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} )
|