summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-28 11:29:02 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-28 11:59:55 (GMT)
commita3b521c2f3e33d091a0ae914320e431bb0a1880f (patch)
tree4a5d1aa48c334100b6c53d5df8c54a0922425212
parentd72381e7afa4a0d7de20433a5776862b82b90a6f (diff)
Now we have a configure dialog box.
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.cpp1
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscript.cpp14
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscript.h3
3 files changed, 18 insertions, 0 deletions
diff --git a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.cpp b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.cpp
index 86406a8..0e4ed5a 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.cpp
+++ b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.cpp
@@ -36,6 +36,7 @@ ViewerPluginExternalEditDialog::ViewerPluginExternalEditDialog(QWidget *parent)
buttonBox->setObjectName(QStringLiteral("buttonbox"));
connect(buttonBox, &QDialogButtonBox::accepted, this, &ViewerPluginExternalEditDialog::slotAccepted);
connect(buttonBox, &QDialogButtonBox::rejected, this, &ViewerPluginExternalEditDialog::reject);
+ mainLayout->addWidget(buttonBox);
}
ViewerPluginExternalEditDialog::~ViewerPluginExternalEditDialog()
diff --git a/plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscript.cpp b/plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscript.cpp
index 8b82adc..ba35314 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscript.cpp
+++ b/plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscript.cpp
@@ -19,6 +19,7 @@
#include "viewerpluginexternalscript.h"
#include "viewerpluginexternalscriptinterface.h"
+#include "configuredialog/viewerpluginexternalconfiguredialog.h"
#include <KActionCollection>
#include <kpluginfactory.h>
@@ -42,4 +43,17 @@ QString ViewerPluginExternalscript::viewerPluginName() const
return QStringLiteral("external script");
}
+void MessageViewer::ViewerPluginExternalscript::showConfigureDialog(QWidget *parent)
+{
+ ViewerPluginExternalConfigureDialog dlg(parent);
+ dlg.exec();
+}
+
+bool MessageViewer::ViewerPluginExternalscript::hasConfigureDialog() const
+{
+ return true;
+}
+
#include "viewerpluginexternalscript.moc"
+
+
diff --git a/plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscript.h b/plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscript.h
index 15582d5..c07e3f5 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscript.h
+++ b/plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscript.h
@@ -32,6 +32,9 @@ public:
ViewerPluginInterface *createView(QWidget *parent, KActionCollection *ac) Q_DECL_OVERRIDE;
QString viewerPluginName() const Q_DECL_OVERRIDE;
+
+ void showConfigureDialog(QWidget *parent) Q_DECL_OVERRIDE;
+ bool hasConfigureDialog() const Q_DECL_OVERRIDE;
};
}
#endif // VIEWERPLUGINEXTERNALSCRIPT_H