diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2022-06-10 21:53:21 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2022-09-06 20:15:00 +0200 |
commit | 05cc5b3541700572f39cf98f8aeaba50c1342dae (patch) | |
tree | 7b8e543b12e688ce71e11c98406eb0e1075b72db /src/testlib/qttestglobal.h | |
parent | a6050125a700d677b786f9db0a475af9975e9fc4 (diff) |
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 <alexandru.croitor@qt.io>
Diffstat (limited to 'src/testlib/qttestglobal.h')
-rw-r--r-- | src/testlib/qttestglobal.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <QtCore/qglobal.h> #include <QtTest/qttestlib-config.h> #include <QtTest/qttestexports.h> |