Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kleopatra
Commits
0cc15e96
Commit
0cc15e96
authored
Oct 11, 2022
by
Laurent Montel
Browse files
Make compile against qt6
parent
7b49a35c
Pipeline
#245989
passed with stage
in 2 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/utils/qt-cxx20-compat.h
View file @
0cc15e96
...
...
@@ -11,10 +11,11 @@
#pragma once
#include
<Qt>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
// define some bitwise operators to avoid warning that bitwise operation between
// different enumeration types is deprecated
inline
int
operator
|
(
Qt
::
Modifier
modifier
,
Qt
::
Key
key
)
{
return
static_cast
<
int
>
(
modifier
)
|
static_cast
<
int
>
(
key
);
}
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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