058a5da2dd
Needs to implement a dummy switcher item. As the root item of the switchers are no longer QQuickItem derived it cannot use a QQuickView. Instead a component gets created and the switcher is just shown on the primary screen. It's a more appropriate preview now which is not put into a dialog window. To make it more realistic (and to be able to dismiss it) the preview grabs keyboard and mouse and closes itself if escape, return, enter or space is pressed. As well clicking outside the preview window closes the preview.
34 lines
1 KiB
CMake
34 lines
1 KiB
CMake
include_directories( ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/tabbox ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/)
|
|
|
|
########### next target ###############
|
|
|
|
add_definitions(-DTABBOX_KCM)
|
|
|
|
set(kcm_kwintabbox_PART_SRCS
|
|
main.cpp
|
|
layoutpreview.cpp
|
|
thumbnailitem.cpp
|
|
${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/tabbox/tabboxconfig.cpp
|
|
)
|
|
|
|
kde4_add_ui_files( kcm_kwintabbox_PART_SRCS main.ui )
|
|
|
|
add_library(kcm_kwintabbox MODULE ${kcm_kwintabbox_PART_SRCS})
|
|
|
|
target_link_libraries(kcm_kwintabbox
|
|
Qt5::Quick
|
|
KF5::KCMUtils
|
|
KF5::Completion
|
|
KF5::GlobalAccel
|
|
KF5::I18n
|
|
KF5::Service
|
|
KF5::NewStuff
|
|
${XCB_XCB_LIBRARY})
|
|
|
|
install(TARGETS kcm_kwintabbox DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
|
|
########### install files ###############
|
|
install( FILES kwintabbox.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
install( FILES thumbnails/konqueror.png thumbnails/kmail.png thumbnails/systemsettings.png thumbnails/dolphin.png DESTINATION ${DATA_INSTALL_DIR}/kwin/kcm_kwintabbox)
|
|
install( FILES kwinswitcher.knsrc DESTINATION ${CONFIG_INSTALL_DIR} )
|