Commit ea0ee5c3 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Enable JSON metadata for KParts konq_sidebar & fsviewpart

parent 4a9eb1bf
......@@ -36,10 +36,11 @@ install(TARGETS fsview ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
set(fsviewpart_PART_SRCS fsview_part.cpp ${libfsview_SRCS})
add_library(fsviewpart MODULE ${fsviewpart_PART_SRCS})
kcoreaddons_desktop_to_json(fsviewpart fsview_part.desktop)
target_link_libraries(fsviewpart KF5::Parts KF5::IconThemes)
install(TARGETS fsviewpart DESTINATION ${KDE_INSTALL_PLUGINDIR} )
install(TARGETS fsviewpart DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/parts)
########### install files ###############
......
......@@ -55,7 +55,7 @@
#include "fsviewdebug.h"
K_PLUGIN_FACTORY(FSViewPartFactory, registerPlugin<FSViewPart>();)
K_PLUGIN_CLASS_WITH_JSON(FSViewPart, "fsview_part.json")
// FSJob, for progress
......
......@@ -123,7 +123,7 @@ Comment[zh_CN]=启用一个基于文件大小的查看目录和文件的比例
Comment[zh_TW]=以檔案與目錄的大小來開啟比例檢視圖
MimeType=inode/directory;
ServiceTypes=KParts/ReadOnlyPart
X-KDE-Library=fsviewpart
X-KDE-Library=kf5/parts/fsviewpart
Type=Service
Icon=fsview
DocPath=konq-plugins/fsview/index.html
......@@ -37,10 +37,11 @@ set(konq_sidebar_PART_SRCS
)
add_library(konq_sidebar MODULE ${konq_sidebar_PART_SRCS} ${sidebar_DEBUG_SRCS})
kcoreaddons_desktop_to_json(konq_sidebar konq_sidebartng.desktop)
target_link_libraries(konq_sidebar KF5::Parts KF5::Konq konqsidebarplugin KF5::KCMUtils KF5::IconThemes)
install(TARGETS konq_sidebar DESTINATION ${KDE_INSTALL_PLUGINDIR} )
install(TARGETS konq_sidebar DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/parts)
########### install files ###############
......
......@@ -3,7 +3,7 @@ Type=Service
Icon=view-sidetree
MimeType=inode/directory;
X-KDE-ServiceTypes=KParts/ReadOnlyPart,Browser/View
X-KDE-Library=konq_sidebar
X-KDE-Library=kf5/parts/konq_sidebar
X-KDE-BrowserView-AllowAsDefault=false
X-KDE-BrowserView-HideFromMenus=true
X-KDE-BrowserView-PassiveMode=true
......
......@@ -23,9 +23,7 @@
#include <kacceleratormanager.h>
#include <KLocalizedString>
K_PLUGIN_FACTORY(KonqSidebarFactory,
registerPlugin<KonqSidebarPart>();
)
K_PLUGIN_CLASS_WITH_JSON(KonqSidebarPart, "konq_sidebartng.json")
KonqSidebarPart::KonqSidebarPart(QWidget *parentWidget, QObject *parent, const QVariantList &)
: KParts::ReadOnlyPart(parent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment