From 05cc5b3541700572f39cf98f8aeaba50c1342dae Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Fri, 10 Jun 2022 21:53:21 +0200 Subject: [PATCH] Introduce the qt_deprecates pragma The qt_deprecates pragma indicates that the file passed as argument is deprecated and supposed to be replaced by the file where the pragma is defined. Syncqt procedure generates the file passed as argument automatically with the deprecation warning. After the deprecation period the pragma should be removed and the deprecated file will not be included to the Qt installation too. The pragma is only handled by the cpp version of syncqt cpp and supposed to replace the 'deprecatedheaders' record in sync.profiles. Change-Id: Ibe69423a5de67f58907a3edbc5961f5ab63944de Reviewed-by: Alexandru Croitor --- src/dbus/qtdbusglobal.h | 4 ++++ src/sql/kernel/qtsqlglobal.h | 1 + src/testlib/qttestglobal.h | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/src/dbus/qtdbusglobal.h b/src/dbus/qtdbusglobal.h index 9724c066f6..3c2268c8c3 100644 --- a/src/dbus/qtdbusglobal.h +++ b/src/dbus/qtdbusglobal.h @@ -4,6 +4,10 @@ #ifndef QTDBUSGLOBAL_H #define QTDBUSGLOBAL_H +#if 0 +#pragma qt_deprecates(qdbusmacros.h) +#endif + #include #include #include diff --git a/src/sql/kernel/qtsqlglobal.h b/src/sql/kernel/qtsqlglobal.h index 977d97abbf..b01010d653 100644 --- a/src/sql/kernel/qtsqlglobal.h +++ b/src/sql/kernel/qtsqlglobal.h @@ -6,6 +6,7 @@ #if 0 #pragma qt_class(QSql) +#pragma qt_deprecates(qsql.h) #endif #include diff --git a/src/testlib/qttestglobal.h b/src/testlib/qttestglobal.h index 8ede78c2a2..ee2f350b80 100644 --- a/src/testlib/qttestglobal.h +++ b/src/testlib/qttestglobal.h @@ -4,6 +4,10 @@ #ifndef QTTESTGLOBAL_H #define QTTESTGLOBAL_H +#if 0 +#pragma qt_deprecates(qtest_global.h) +#endif + #include #include #include