Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Messagelib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
PIM Messagelib
Commits
eca91edd
Commit
eca91edd
authored
Jun 05, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more Q_FALLTHROUGH
parent
df20b98f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
messagecomposer/src/composer/composerviewbase.cpp
messagecomposer/src/composer/composerviewbase.cpp
+3
-0
messagecomposer/src/utils/util.cpp
messagecomposer/src/utils/util.cpp
+6
-0
messagelist/src/core/themedelegate.cpp
messagelist/src/core/themedelegate.cpp
+6
-0
No files found.
messagecomposer/src/composer/composerviewbase.cpp
View file @
eca91edd
...
...
@@ -1914,6 +1914,9 @@ bool ComposerViewBase::determineWhetherToEncrypt(bool doEncryptCompletely, Kleo:
case
Kleo
::
AskOpportunistic
:
opportunistic
=
true
;
// fall through...
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
Q_FALLTHROUGH
();
#endif
case
Kleo
::
Ask
:
{
// the user wants to be asked or has to be asked
#ifndef QT_NO_CURSOR
...
...
messagecomposer/src/utils/util.cpp
View file @
eca91edd
...
...
@@ -161,6 +161,9 @@ void MessageComposer::Util::makeToplevelContentType(KMime::Content *content, Kle
// fall through (for encryption, there's no difference between
// SMIME and SMIMEOpaque, since there is no mp/encrypted for
// S/MIME)
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
Q_FALLTHROUGH
();
#endif
case
Kleo
::
SMIMEOpaqueFormat
:
qCDebug
(
MESSAGECOMPOSER_LOG
)
<<
"setting headers for SMIME/opaque"
;
...
...
@@ -193,6 +196,9 @@ void MessageComposer::Util::setNestedContentType(KMime::Content *content, Kleo::
content
->
contentType
()
->
setParameter
(
QStringLiteral
(
"name"
),
QString
::
fromAscii
(
"smime.p7s"
));
return
;
}
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
Q_FALLTHROUGH
();
#endif
// fall through:
default:
case
Kleo
::
InlineOpenPGPFormat
:
...
...
messagelist/src/core/themedelegate.cpp
View file @
eca91edd
...
...
@@ -723,6 +723,9 @@ void ThemeDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
);
}
// fall through anyway
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
Q_FALLTHROUGH
();
#endif
}
case
Theme
::
RoundedRect
:
{
painter
->
setPen
(
Qt
::
NoPen
);
...
...
@@ -768,6 +771,9 @@ void ThemeDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
);
}
// fall through anyway
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
Q_FALLTHROUGH
();
#endif
}
case
Theme
::
GradientRect
:
{
// FIXME: Could cache this brush
...
...
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