diff --git a/src/utils/qt-cxx20-compat.h b/src/utils/qt-cxx20-compat.h index 4871f19f1..a11b90e3c 100644 --- a/src/utils/qt-cxx20-compat.h +++ b/src/utils/qt-cxx20-compat.h @@ -1,20 +1,21 @@ /* -*- mode: c++; c-basic-offset:4 -*- utils/qt-cxx20-compat.h This file is part of Kleopatra, the KDE keymanager SPDX-FileCopyrightText: 2022 g10 Code GmbH SPDX-FileContributor: Ingo Klöcker SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include - +#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(modifier) | static_cast(key); } +#endif