Commit 0cc15e96 authored by Laurent Montel's avatar Laurent Montel
Browse files

Make compile against qt6

parent 7b49a35c
Pipeline #245989 passed with stage
in 2 minutes and 59 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment