Skip to content
This repository has been archived by the owner on Mar 4, 2023. It is now read-only.

Commit

Permalink
fix plugin factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Skycoder42 committed Aug 4, 2017
1 parent 6e1f53e commit d3077f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions plugin/fileviewseafileplugin.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#include "fileviewseafileplugin.h"

#include <KPluginFactory>
#include <KFileItem>
#include <QMenu>

#include <QDebug>

K_PLUGIN_FACTORY(FileViewSeafilePluginFactory, registerPlugin<FileViewSeafilePlugin>();)
K_PLUGIN_FACTORY_DEFINITION_WITH_BASEFACTORY(FileViewSeafilePluginFactory, KPluginFactory, registerPlugin<FileViewSeafilePlugin>();)

FileViewSeafilePlugin::FileViewSeafilePlugin(QObject *parent, const QVariantList &args) :
KVersionControlPlugin(parent),
Expand Down Expand Up @@ -113,5 +112,3 @@ QList<QAction *> FileViewSeafilePlugin::actions(const KFileItemList &items) cons
Q_UNUSED(items)
return {};
}

#include "fileviewseafileplugin.moc"
3 changes: 3 additions & 0 deletions plugin/fileviewseafileplugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define FILEVIEWSEAFILEPLUGIN_H

#include <Dolphin/KVersionControlPlugin>
#include <KPluginFactory>

#include "seafstatus.h"

Expand All @@ -22,4 +23,6 @@ class FileViewSeafilePlugin : public KVersionControlPlugin
SeafStatus *_seaf;
};

K_PLUGIN_FACTORY_DECLARATION_WITH_BASEFACTORY(FileViewSeafilePluginFactory, KPluginFactory)

#endif // FILEVIEWSEAFILEPLUGIN_H

0 comments on commit d3077f7

Please sign in to comment.