Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
d34b84fa
Commit
d34b84fa
authored
Jan 11, 2021
by
Laurent Montel
😁
Browse files
USe new RemoteContentConfigureDialog
parent
f5f27110
Pipeline
#47319
passed with stage
in 35 minutes and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/configuredialog/configuresecuritypage.cpp
View file @
d34b84fa
...
...
@@ -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"
))
{
...
...
src/configuredialog/configuresecuritypage.h
View file @
d34b84fa
...
...
@@ -34,6 +34,7 @@ private:
void
doLoadOther
()
override
;
private:
void
slotOpenExternalReferenceExceptions
();
void
slotLinkClicked
(
const
QString
&
link
);
Ui_SecurityPageGeneralTab
mSGTab
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment