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
696ade92
Commit
696ade92
authored
Jul 16, 2020
by
Laurent Montel
😁
Browse files
Register cidScheme
parent
0332d2e2
Pipeline
#27408
passed with stage
in 52 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
696ade92
...
...
@@ -403,6 +403,7 @@ target_link_libraries(kmail
KF5::TemplateParser
KF5::Libkdepim
KF5::Crash
KF5::WebEngineViewer
${
kmail_userfeedback_LIB
}
)
...
...
src/main.cpp
View file @
696ade92
...
...
@@ -33,10 +33,12 @@
#include <QApplication>
#include <QSessionManager>
#include <KCrash>
#include <QWebEngineUrlScheme>
#ifdef WITH_KUSERFEEDBACK
#include <KUserFeedback/Provider>
#include "userfeedback/kmailuserfeedbackprovider.h"
#endif
//-----------------------------------------------------------------------------
...
...
@@ -124,6 +126,12 @@ int main(int argc, char *argv[])
QCoreApplication
::
setAttribute
(
Qt
::
AA_ShareOpenGLContexts
,
true
);
QCoreApplication
::
setAttribute
(
Qt
::
AA_EnableHighDpiScaling
,
true
);
QCoreApplication
::
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
,
true
);
//Necessary for "cid" support in kmail.
QWebEngineUrlScheme
cidScheme
(
"cid"
);
cidScheme
.
setFlags
(
QWebEngineUrlScheme
::
SecureScheme
|
QWebEngineUrlScheme
::
ContentSecurityPolicyIgnored
);
cidScheme
.
setSyntax
(
QWebEngineUrlScheme
::
Syntax
::
Path
);
QWebEngineUrlScheme
::
registerScheme
(
cidScheme
);
KMailApplication
app
(
argc
,
&
argv
);
KLocalizedString
::
setApplicationDomain
(
"kmail"
);
app
.
setWindowIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"kmail"
)));
...
...
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