summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-02-15 10:32:47 +0100
committerMarc Mutz <marc.mutz@qt.io>2023-04-19 00:32:23 +0200
commitdae858b7105ffa9c7dedca1d5b35c0f9e9d56436 (patch)
tree8daf8c785acb9182d6c6bce512547bcc1c9e9721
parent1e566d19dcd92832a23561d2d4efe46207c5f67e (diff)
QtGui: establish removed_api.cpp for upcoming QT_GUI_REMOVED_SINCE
Change-Id: I9715c11fc6431e7046193a1d68807155ad7bea05 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r--src/gui/CMakeLists.txt2
-rw-r--r--src/gui/compat/removed_api.cpp24
2 files changed, 26 insertions, 0 deletions
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index b6ecc5f333..a8ddd7f93c 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -56,6 +56,7 @@ qt_internal_add_module(Gui
Qt::Network
QMAKE_MODULE_CONFIG "${qmake_module_config}"
SOURCES
+ compat/removed_api.cpp
image/qabstractfileiconengine.cpp image/qabstractfileiconengine_p.h
image/qabstractfileiconprovider.cpp image/qabstractfileiconprovider.h image/qabstractfileiconprovider_p.h
image/qbitmap.cpp image/qbitmap.h
@@ -275,6 +276,7 @@ qt_internal_add_module(Gui
PRIVATE_MODULE_INTERFACE
Qt::CorePrivate
NO_PCH_SOURCES
+ compat/removed_api.cpp
painting/qdrawhelper.cpp
PRECOMPILED_HEADER
"kernel/qt_gui_pch.h"
diff --git a/src/gui/compat/removed_api.cpp b/src/gui/compat/removed_api.cpp
new file mode 100644
index 0000000000..c38b30d812
--- /dev/null
+++ b/src/gui/compat/removed_api.cpp
@@ -0,0 +1,24 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#define QT_GUI_BUILD_REMOVED_API
+
+#include "qtguiglobal.h"
+
+QT_USE_NAMESPACE
+
+#if QT_GUI_REMOVED_SINCE(6, 6)
+
+// #include "qotherheader.h"
+// // implement removed functions from qotherheader.h
+// order sections alphabetically
+
+#endif // QT_GUI_REMOVED_SINCE(6, 6)
+
+#if QT_GUI_REMOVED_SINCE(6, 7)
+
+// #include "qotherheader.h"
+// // implement removed functions from qotherheader.h
+// order sections alphabetically
+
+#endif // QT_GUI_REMOVED_SINCE(6, 7)