From d3077f7d294229b73e9bf9797a530c89aebcb397 Mon Sep 17 00:00:00 2001 From: Skycoder42 Date: Fri, 4 Aug 2017 21:58:37 +0200 Subject: [PATCH] fix plugin factory --- plugin/fileviewseafileplugin.cpp | 5 +---- plugin/fileviewseafileplugin.h | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/fileviewseafileplugin.cpp b/plugin/fileviewseafileplugin.cpp index c4b441f..57b14d8 100644 --- a/plugin/fileviewseafileplugin.cpp +++ b/plugin/fileviewseafileplugin.cpp @@ -1,12 +1,11 @@ #include "fileviewseafileplugin.h" -#include #include #include #include -K_PLUGIN_FACTORY(FileViewSeafilePluginFactory, registerPlugin();) +K_PLUGIN_FACTORY_DEFINITION_WITH_BASEFACTORY(FileViewSeafilePluginFactory, KPluginFactory, registerPlugin();) FileViewSeafilePlugin::FileViewSeafilePlugin(QObject *parent, const QVariantList &args) : KVersionControlPlugin(parent), @@ -113,5 +112,3 @@ QList FileViewSeafilePlugin::actions(const KFileItemList &items) cons Q_UNUSED(items) return {}; } - -#include "fileviewseafileplugin.moc" diff --git a/plugin/fileviewseafileplugin.h b/plugin/fileviewseafileplugin.h index 60881af..0a11d5f 100644 --- a/plugin/fileviewseafileplugin.h +++ b/plugin/fileviewseafileplugin.h @@ -2,6 +2,7 @@ #define FILEVIEWSEAFILEPLUGIN_H #include +#include #include "seafstatus.h" @@ -22,4 +23,6 @@ class FileViewSeafilePlugin : public KVersionControlPlugin SeafStatus *_seaf; }; +K_PLUGIN_FACTORY_DECLARATION_WITH_BASEFACTORY(FileViewSeafilePluginFactory, KPluginFactory) + #endif // FILEVIEWSEAFILEPLUGIN_H