Commit e1907594 authored by Laurent Montel's avatar Laurent Montel 😁

Add default method

parent d7ea5f60
......@@ -31,6 +31,11 @@ using namespace PimCommon::ConfigureImmutableWidgetUtils;
#include <KLocalizedString>
#include <QDialog>
#include <KConfigGroup>
#include <QHBoxLayout>
#ifdef QTWEBENGINE_SUPPORT_OPTION
#include <MessageViewer/NetworkPluginUrlInterceptorConfigureWidget>
#endif
using namespace MailCommon;
QString MiscPage::helpAnchor() const
......@@ -208,10 +213,13 @@ void MiscPagePrintingTab::save()
//----------------------------
#ifdef QTWEBENGINE_SUPPORT_OPTION
AddonsPluginTab::AddonsPluginTab(QWidget *parent)
: ConfigModuleTab(parent)
AddonsPluginTab::AddonsPluginTab(MessageViewer::NetworkPluginUrlInterceptorConfigureWidget *configureWidget, QWidget *parent)
: ConfigModuleTab(parent),
mConfigureWidget(configureWidget)
{
QHBoxLayout *l = new QHBoxLayout(this);
l->setContentsMargins(0, 0, 0, 0);
l->addWidget(mConfigureWidget);
}
AddonsPluginTab::~AddonsPluginTab()
......@@ -221,21 +229,21 @@ AddonsPluginTab::~AddonsPluginTab()
void AddonsPluginTab::save()
{
mConfigureWidget->saveSettings();
}
void AddonsPluginTab::doLoadFromGlobalSettings()
{
//TODO ?
}
void AddonsPluginTab::doLoadOther()
{
mConfigureWidget->loadSettings();
}
void AddonsPluginTab::doResetToDefaultsOther()
{
mConfigureWidget->resetSettings();
}
#endif
......@@ -34,6 +34,13 @@ class PrintingSettings;
}
class ConfigureAgentsWidget;
#ifdef QTWEBENGINE_SUPPORT_OPTION
namespace MessageViewer
{
class NetworkPluginUrlInterceptorConfigureWidget;
}
#endif
class MiscPageFolderTab : public ConfigModuleTab
{
Q_OBJECT
......@@ -121,7 +128,7 @@ class AddonsPluginTab : public ConfigModuleTab
{
Q_OBJECT
public:
explicit AddonsPluginTab(QWidget *parent = Q_NULLPTR);
explicit AddonsPluginTab(MessageViewer::NetworkPluginUrlInterceptorConfigureWidget *configureWidget, QWidget *parent = Q_NULLPTR);
~AddonsPluginTab();
void save() Q_DECL_OVERRIDE;
......@@ -132,6 +139,7 @@ private:
void doResetToDefaultsOther() Q_DECL_OVERRIDE;
private:
MessageViewer::NetworkPluginUrlInterceptorConfigureWidget *mConfigureWidget;
};
#endif
#endif // CONFIGUREMISCPAGE_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