Disable Qt deprecation warnings
authorFelix Weilbach <felix.weilbach@nextcloud.com>
Fri, 10 Sep 2021 13:59:47 +0000 (15:59 +0200)
committerFelix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de>
Fri, 17 Sep 2021 13:32:26 +0000 (13:32 +0000)
They don't help us during regular development and some of them are not
fixable (e.g. QNetworkMangerConfiguration) in the open source variant
of Qt5.

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
CMakeLists.txt
src/gui/CMakeLists.txt

index 156c4e7474f85a96a554197f8f4bda24e95790a8..c73a620d1fda461b0ac101adf085915eb5178f34 100644 (file)
@@ -77,9 +77,9 @@ include(GetGitRevisionDescription)
 get_git_head_revision(GIT_REFSPEC GIT_SHA1)
 
 add_definitions(
+    -DQT_DISABLE_DEPRECATED_BEFORE=0x000000
     -DQT_USE_QSTRINGBUILDER
     -DQT_MESSAGELOGCONTEXT #enable function name and line number in debug output
-    -DQT_DEPRECATED_WARNINGS
 )
 
 # if we cannot get it from git, directly try .tag (packages)
index 74c460d066336205e3f14a9d84bfd7f5371485c0..ef1d693830763b3f7c9e7febbe000cc72bad7537 100644 (file)
@@ -470,10 +470,6 @@ if(WITH_CRASHREPORTER)
     endif()
 endif()
 
-# application.cpp still uses QDesktopServices::storageLocation
-target_compile_definitions(nextcloudCore PRIVATE "QT_DISABLE_DEPRECATED_BEFORE=0")
-
-
 install(TARGETS nextcloud
         RUNTIME DESTINATION bin
         LIBRARY DESTINATION lib