Commit 742ece22 authored by Laurent Montel's avatar Laurent Montel 😁

Use PluginEditorCheckBeforeSendConfigureWidget

parent 84cc091f
......@@ -23,7 +23,7 @@
#include <QVBoxLayout>
ConfirmAddressConfigureWidget::ConfirmAddressConfigureWidget(QWidget *parent)
: QWidget(parent)
: MessageComposer::PluginEditorCheckBeforeSendConfigureWidget(parent)
{
QVBoxLayout *vboxlayout = new QVBoxLayout;
vboxlayout->setObjectName(QStringLiteral("mainlayout"));
......@@ -34,3 +34,20 @@ ConfirmAddressConfigureWidget::~ConfirmAddressConfigureWidget()
{
}
void ConfirmAddressConfigureWidget::loadSettings()
{
//TODO
}
void ConfirmAddressConfigureWidget::saveSettings()
{
//TODO
}
void ConfirmAddressConfigureWidget::resetSettings()
{
//TODO
}
......@@ -22,13 +22,18 @@
#define CONFIRMADDRESSCONFIGUREWIDGET_H
#include <QWidget>
#include <MessageComposer/PluginEditorCheckBeforeSendConfigureWidget>
class ConfirmAddressConfigureWidget : public QWidget
class ConfirmAddressConfigureWidget : public MessageComposer::PluginEditorCheckBeforeSendConfigureWidget
{
Q_OBJECT
public:
explicit ConfirmAddressConfigureWidget(QWidget *parent = Q_NULLPTR);
~ConfirmAddressConfigureWidget();
void loadSettings() Q_DECL_OVERRIDE;
void saveSettings() Q_DECL_OVERRIDE;
void resetSettings() Q_DECL_OVERRIDE;
};
#endif // CONFIRMADDRESSCONFIGUREWIDGET_H
......@@ -38,13 +38,14 @@ bool ConfirmAddressInterface::exec()
return true;
}
QWidget *ConfirmAddressInterface::createConfigureWidget(QWidget *parent) const
{
return new ConfirmAddressConfigureWidget(parent);
}
bool ConfirmAddressInterface::hasConfigureDialog() const
{
return true;
}
MessageComposer::PluginEditorCheckBeforeSendConfigureWidget *ConfirmAddressInterface::createConfigureWidget(QWidget *parent) const
{
return new ConfirmAddressConfigureWidget(parent);
}
......@@ -31,7 +31,10 @@ public:
bool exec() Q_DECL_OVERRIDE;
bool hasConfigureDialog() const Q_DECL_OVERRIDE;
QWidget *createConfigureWidget(QWidget *parent) const Q_DECL_OVERRIDE;
MessageComposer::PluginEditorCheckBeforeSendConfigureWidget *createConfigureWidget(QWidget *parent) const Q_DECL_OVERRIDE;
};
#endif // CONFIRMADDRESSINTERFACE_H
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