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

Use PluginEditorCheckBeforeSendConfigureWidget

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