Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
07b7f76f
Commit
07b7f76f
authored
Nov 28, 2020
by
Friedrich W. H. Kossebau
Committed by
Elvis Angelaccio
Dec 07, 2020
Browse files
dolphinpart: add JSON metadata to plugin, install into kf5/parts subdir
parent
3c6f1e68
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
07b7f76f
...
...
@@ -186,12 +186,13 @@ set(dolphinpart_SRCS
qt5_add_resources
(
dolphinpart_SRCS dolphinpart.qrc
)
add_library
(
dolphinpart MODULE
${
dolphinpart_SRCS
}
)
kcoreaddons_desktop_to_json
(
dolphinpart dolphinpart.desktop
)
target_link_libraries
(
dolphinpart
dolphinprivate
)
install
(
TARGETS dolphinpart DESTINATION
${
KDE_INSTALL_PLUGINDIR
}
)
install
(
TARGETS dolphinpart DESTINATION
${
KDE_INSTALL_PLUGINDIR
}
/kf5/parts
)
install
(
FILES dolphinpart.desktop DESTINATION
${
KDE_INSTALL_KSERVICES5DIR
}
)
...
...
src/dolphinpart.cpp
View file @
07b7f76f
...
...
@@ -45,7 +45,7 @@
#include <QStandardPaths>
#include <QTextDocument>
K_PLUGIN_
FACTORY
(
DolphinPartFactory
,
registerPlugin
<
D
olphin
P
art
>
();
)
K_PLUGIN_
CLASS_WITH_JSON
(
DolphinPart
,
"d
olphin
p
art
.json"
)
DolphinPart
::
DolphinPart
(
QWidget
*
parentWidget
,
QObject
*
parent
,
const
QVariantList
&
args
)
:
KParts
::
ReadOnlyPart
(
parent
)
...
...
src/dolphinpart.desktop
View file @
07b7f76f
...
...
@@ -51,7 +51,7 @@ Name[zh_CN]=Dolphin 视图
Name[zh_TW]=Dolphin 檢視
MimeType=inode/directory;
X-KDE-ServiceTypes=KParts/ReadOnlyPart,Browser/View
X-KDE-Library=dolphinpart
X-KDE-Library=
kf5/parts/
dolphinpart
#X-KDE-BrowserView-Args=Icon
X-KDE-BrowserView-HideFromMenus=true
X-KDE-BrowserView-Built-Into=konqueror
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment