From 2bd2490539b41f99ae30fa7ec977d5936569d8db Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Mon, 14 Jun 2021 17:13:12 +0300 Subject: [PATCH] Disable functions deprecated in Qt 5.14 and earlier --- cmake/Modules/MacroQbtCommonConfig.cmake | 2 +- src/src.pro | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Modules/MacroQbtCommonConfig.cmake b/cmake/Modules/MacroQbtCommonConfig.cmake index cea42388c..ba442233f 100644 --- a/cmake/Modules/MacroQbtCommonConfig.cmake +++ b/cmake/Modules/MacroQbtCommonConfig.cmake @@ -17,7 +17,7 @@ macro(qbt_common_config) ) target_compile_definitions(qbt_common_cfg INTERFACE - QT_DEPRECATED_WARNINGS + QT_DISABLE_DEPRECATED_BEFORE=0x050e00 QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_BYTEARRAY QT_USE_QSTRINGBUILDER diff --git a/src/src.pro b/src/src.pro index fc48051b8..796c39521 100644 --- a/src/src.pro +++ b/src/src.pro @@ -56,7 +56,7 @@ CONFIG(release, debug|release) { include(../version.pri) # Qt defines -DEFINES += QT_DEPRECATED_WARNINGS +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050e00 DEFINES += QT_NO_CAST_TO_ASCII DEFINES += QT_NO_CAST_FROM_BYTEARRAY DEFINES += QT_USE_QSTRINGBUILDER