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

USe new RemoteContentConfigureDialog

parent f5f27110
Pipeline #47319 passed with stage
in 35 minutes and 2 seconds
......@@ -10,6 +10,7 @@ using namespace PimCommon::ConfigureImmutableWidgetUtils;
#include <MessageViewer/MessageViewerSettings>
#include <MessageComposer/MessageComposerSettings>
#include <WebEngineViewer/CheckPhishingUrlCache>
#include <MessageViewer/RemoteContentConfigureDialog>
#include <MailCommon/FolderSettings>
#include "settings/kmailsettings.h"
......@@ -27,6 +28,7 @@ using namespace PimCommon::ConfigureImmutableWidgetUtils;
#include <QButtonGroup>
#include <QDBusConnection>
#include <QWhatsThis>
#include <QPointer>
QString SecurityPage::helpAnchor() const
{
......@@ -73,6 +75,7 @@ SecurityPageGeneralTab::SecurityPageGeneralTab(QWidget *parent)
{
mSGTab.setupUi(this);
connect(mSGTab.mConfigureExternalReference, &QPushButton::clicked, this, &SecurityPageGeneralTab::slotOpenExternalReferenceExceptions);
connect(mSGTab.mHtmlMailCheck, &QCheckBox::stateChanged, this, &SecurityPageGeneralTab::slotEmitChanged);
connect(mSGTab.mExternalReferences, &QCheckBox::stateChanged, this, &SecurityPageGeneralTab::slotEmitChanged);
connect(mSGTab.labelWarnHTML, &QLabel::linkActivated, this, &SecurityPageGeneralTab::slotLinkClicked);
......@@ -90,6 +93,13 @@ SecurityPageGeneralTab::SecurityPageGeneralTab(QWidget *parent)
mSGTab.scamWhiteList->setRemoveDialogLabel(i18n("Do you want to remove this email address?"));
}
void SecurityPageGeneralTab::slotOpenExternalReferenceExceptions()
{
QPointer<MessageViewer::RemoteContentConfigureDialog> dlg = new MessageViewer::RemoteContentConfigureDialog(this);
dlg->exec();
delete dlg;
}
void SecurityPageGeneralTab::slotLinkClicked(const QString &link)
{
if (link == QLatin1String("whatsthis1")) {
......
......@@ -34,6 +34,7 @@ private:
void doLoadOther() override;
private:
void slotOpenExternalReferenceExceptions();
void slotLinkClicked(const QString &link);
Ui_SecurityPageGeneralTab mSGTab;
};
......
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