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

Now we have a configure dialog box.

parent d72381e7
......@@ -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()
......
......@@ -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"
......@@ -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
Supports Markdown
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