Commit a9a688a0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix generate as plugins

parent 7cd42f68
Pipeline #68572 passed with stage
in 53 minutes and 35 seconds
...@@ -6,9 +6,12 @@ ...@@ -6,9 +6,12 @@
#include "confirmbeforedeletingplugin.h" #include "confirmbeforedeletingplugin.h"
#include "confirmbeforedeletingdialog.h" #include "confirmbeforedeletingdialog.h"
#include <KPluginFactory>
#include <QPointer> #include <QPointer>
ConfirmBeforeDeletingPlugin::ConfirmBeforeDeletingPlugin(QObject *parent) K_PLUGIN_CLASS_WITH_JSON(ConfirmBeforeDeletingPlugin, "kmail_confirmbeforedeletingplugin.json")
ConfirmBeforeDeletingPlugin::ConfirmBeforeDeletingPlugin(QObject *parent, const QList<QVariant> &)
: MessageViewer::MessageViewerCheckBeforeDeletingPlugin(parent) : MessageViewer::MessageViewerCheckBeforeDeletingPlugin(parent)
{ {
} }
...@@ -25,3 +28,5 @@ void ConfirmBeforeDeletingPlugin::showConfigureDialog(QWidget *parent) ...@@ -25,3 +28,5 @@ void ConfirmBeforeDeletingPlugin::showConfigureDialog(QWidget *parent)
} }
delete dlg; delete dlg;
} }
#include "confirmbeforedeletingplugin.moc"
...@@ -11,7 +11,7 @@ class ConfirmBeforeDeletingPlugin : public MessageViewer::MessageViewerCheckBefo ...@@ -11,7 +11,7 @@ class ConfirmBeforeDeletingPlugin : public MessageViewer::MessageViewerCheckBefo
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit ConfirmBeforeDeletingPlugin(QObject *parent = nullptr); explicit ConfirmBeforeDeletingPlugin(QObject *parent = nullptr, const QList<QVariant> & = {});
~ConfirmBeforeDeletingPlugin() override; ~ConfirmBeforeDeletingPlugin() override;
void showConfigureDialog(QWidget *parent) override; void showConfigureDialog(QWidget *parent) override;
......
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