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
KDE PIM Add-ons
Commits
207ff65a
Commit
207ff65a
authored
Jun 12, 2017
by
Laurent Montel
😁
Browse files
Use QRegularExpression here
parent
902566ef
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/messageviewerheaderplugins/briefheaderstyleplugin/briefheaderstyle.cpp
View file @
207ff65a
...
...
@@ -41,9 +41,8 @@
#include <KLocalizedString>
#include <QRegExp>
#include <QApplication>
#include <QRegularExpression>
#include <kmime/kmime_message.h>
#include <kmime/kmime_dateformatter.h>
...
...
@@ -118,7 +117,7 @@ QString BriefHeaderStyle::format(KMime::Message *message) const
}
// remove all empty (modulo whitespace) entries and joins them via ", \n"
headerStr
+=
QStringLiteral
(
" ("
)
+
headerParts
.
filter
(
QReg
Exp
(
QLatin1String
(
"
\\
S"
))).
join
(
QStringLiteral
(
",
\n
"
))
+
QLatin1Char
(
')'
);
headerStr
+=
QStringLiteral
(
" ("
)
+
headerParts
.
filter
(
QReg
ularExpression
(
QStringLiteral
(
"
\\
S"
))).
join
(
QStringLiteral
(
",
\n
"
))
+
QLatin1Char
(
')'
);
headerStr
+=
QLatin1String
(
"</div>
\n
"
);
...
...
Write
Preview
Markdown
is supported
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