mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-04 08:58:20 +03:00
move iconitem from app to plugin
This commit is contained in:
parent
dd091b6569
commit
7896919736
@ -26,7 +26,6 @@ set(lattedock-app_SRCS
|
||||
dockview.cpp
|
||||
dockconfigview.cpp
|
||||
packageplugins/shell/dockpackage.cpp
|
||||
iconitem.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
@ -49,7 +48,6 @@ target_link_libraries(
|
||||
KF5::Activities
|
||||
KF5::QuickAddons
|
||||
KF5::WindowSystem
|
||||
KF5::IconThemes
|
||||
)
|
||||
|
||||
install(TARGETS latte-dock ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
@ -6,6 +6,9 @@ find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Quick Qml)
|
||||
find_package(KF5 REQUIRED COMPONENTS
|
||||
WindowSystem
|
||||
CoreAddons
|
||||
Plasma
|
||||
PlasmaQuick
|
||||
IconThemes
|
||||
)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
@ -14,6 +17,7 @@ set(lattedock_SRCS
|
||||
lattedockplugin.cpp
|
||||
windowsystem.cpp
|
||||
dock.cpp
|
||||
iconitem.cpp
|
||||
)
|
||||
|
||||
add_library(lattedockplugin SHARED ${lattedock_SRCS})
|
||||
@ -23,6 +27,10 @@ target_link_libraries(lattedockplugin
|
||||
Qt5::Qml
|
||||
KF5::WindowSystem
|
||||
KF5::CoreAddons
|
||||
KF5::Plasma
|
||||
KF5::PlasmaQuick
|
||||
KF5::QuickAddons
|
||||
KF5::IconThemes
|
||||
)
|
||||
|
||||
install(TARGETS lattedockplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/latte)
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "lattedockplugin.h"
|
||||
#include "windowsystem.h"
|
||||
#include "dock.h"
|
||||
#include "iconitem.h"
|
||||
|
||||
#include <qqml.h>
|
||||
|
||||
@ -31,4 +32,5 @@ void LatteDockPlugin::registerTypes(const char *uri)
|
||||
qmlRegisterUncreatableType<Latte::Dock>(uri, 0, 1, "Dock", "Latte Dock Types uncreatable");
|
||||
|
||||
qmlRegisterType<Latte::WindowSystem>(uri, 0, 1, "WindowSystem");
|
||||
qmlRegisterType<Latte::IconItem>(uri, 0, 1, "IconItem");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user