File 0001-Revert-USe-ecm_set_disabled_deprecation_versions-dir.patch of Package kommit

From 989a36bb85c693625928c73c7732cd2b7c479df9 Mon Sep 17 00:00:00 2001
From: Cameron Rapp <camspam@redhyena.net>
Date: Sat, 8 Jul 2023 14:17:03 -0700
Subject: [PATCH 1/1] Revert "USe ecm_set_disabled_deprecation_versions
 directly"

This reverts commit 0dd5a46553320ae8ba9bb2bfd95796a95161f7b9.
---
 CMakeLists.txt | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4498552..1c72a59 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,7 +37,6 @@ include(ECMAddTests)
 include(GenerateExportHeader)
 include(KDEGitCommitHooks)
 include(KDEClangFormat)
-include(ECMDeprecationSettings)
 if (QT_MAJOR_VERSION STREQUAL "6")
     set(QT_REQUIRED_VERSION "6.4.0")
     set(KF_MIN_VERSION "5.240.0")
@@ -81,10 +80,7 @@ add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
 add_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
 add_definitions(-DQT_NO_FOREACH)
 #add_definitions(-DQT_NO_CAST_FROM_ASCII)
-
-ecm_set_disabled_deprecation_versions(QT 5.15.2
-    )
-
+add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
 
 option(USE_UNITY_CMAKE_SUPPORT "Use UNITY cmake support (speedup compile time)" OFF)
 
-- 
2.35.3

openSUSE Build Service is sponsored by