mirror of
https://invent.kde.org/plasma/plasma-desktop.git
synced 2026-11-03 22:59:45 -09:00
[applets/showdesktop] Port to plasma_add_applet
This commit is contained in:
parent
76e8f84d61
commit
80b75c0de0
7 changed files with 14 additions and 17 deletions
|
|
@ -1,26 +1,25 @@
|
|||
plasma_install_package(package org.kde.plasma.showdesktop)
|
||||
|
||||
add_definitions(-DTRANSLATION_DOMAIN="plasma_applet_org.kde.plasma.showdesktop")
|
||||
|
||||
ecm_add_qml_module(showdesktopplugin
|
||||
URI org.kde.plasma.private.showdesktop
|
||||
VERSION 0.1
|
||||
GENERATE_PLUGIN_SOURCE
|
||||
)
|
||||
|
||||
qt_add_dbus_interface(showdesktop_SRCS org.kde.KWin.xml kwin_interface)
|
||||
|
||||
target_sources(showdesktopplugin PRIVATE
|
||||
showdesktop.cpp
|
||||
${showdesktop_SRCS}
|
||||
plasma_add_applet(org.kde.plasma.showdesktop
|
||||
QML_SOURCES
|
||||
main.qml
|
||||
Controller.qml
|
||||
MinimizeAllController.qml
|
||||
PeekController.qml
|
||||
CPP_SOURCES
|
||||
showdesktop.cpp
|
||||
${showdesktop_SRCS}
|
||||
RESOURCES
|
||||
main.xml
|
||||
GENERATE_APPLET_CLASS
|
||||
)
|
||||
|
||||
target_link_libraries(showdesktopplugin PRIVATE
|
||||
target_link_libraries(org.kde.plasma.showdesktop PRIVATE
|
||||
Qt::Core
|
||||
Qt::DBus
|
||||
Qt::Qml
|
||||
Qt::Quick
|
||||
KF6::WindowSystem
|
||||
)
|
||||
|
||||
ecm_finalize_qml_module(showdesktopplugin)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
import org.kde.plasma.private.showdesktop 0.1
|
||||
import plasma.applet.org.kde.plasma.showdesktop
|
||||
import org.kde.plasma.plasmoid 2.0
|
||||
|
||||
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"KPackageStructure": "Plasma/Applet",
|
||||
"KPlugin": {
|
||||
"Authors": [
|
||||
{
|
||||
|
|
@ -111,7 +110,6 @@
|
|||
"desktop"
|
||||
],
|
||||
"Icon": "user-desktop",
|
||||
"Id": "org.kde.plasma.showdesktop",
|
||||
"License": "GPL-2.0+",
|
||||
"Name": "Peek at Desktop",
|
||||
"Name[ar]": "نظرة على سطح المكتب",
|
||||
Loading…
Reference in a new issue