summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2021-06-23 10:05:43 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2021-06-24 20:40:49 +0200
commitd705d7e5d662f320d0c0515fa02a7e29e59ce762 (patch)
tree416aab47c9f6b8dc637531ccadea35018d27aec9
parent9bd418aeab6a3d1b814023c35b869a3fc529cbb2 (diff)
Migrate to autogenerated cpp exports
Use autogeneratedd cpp exports in the Gui module. Task-number: QTBUG-90492 Change-Id: Ifc5d3dd138ef9f86f6003ed9adb66a9eefdd64db Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--src/gui/CMakeLists.txt1
-rw-r--r--src/gui/kernel/qt_gui_pch.h1
-rw-r--r--src/gui/kernel/qtguiglobal.h15
3 files changed, 3 insertions, 14 deletions
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index 5fe4d59d10..d2be239d84 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -277,6 +277,7 @@ qt_internal_add_module(Gui
"painting/qdrawhelper.cpp" # special case
PRECOMPILED_HEADER
"kernel/qt_gui_pch.h"
+ GENERATE_CPP_EXPORTS
)
# Resources:
diff --git a/src/gui/kernel/qt_gui_pch.h b/src/gui/kernel/qt_gui_pch.h
index 5e07fa45e7..e7cccba027 100644
--- a/src/gui/kernel/qt_gui_pch.h
+++ b/src/gui/kernel/qt_gui_pch.h
@@ -48,6 +48,7 @@
#include "../../corelib/global/qt_pch.h"
#if defined __cplusplus
+#include <qtguiexports.h>
#include <qtguiglobal.h>
#include <qguiapplication.h>
#include <qbitmap.h>
diff --git a/src/gui/kernel/qtguiglobal.h b/src/gui/kernel/qtguiglobal.h
index 8a7409e3d9..2303d75466 100644
--- a/src/gui/kernel/qtguiglobal.h
+++ b/src/gui/kernel/qtguiglobal.h
@@ -42,19 +42,6 @@
#include <QtCore/qglobal.h>
#include <QtGui/qtgui-config.h>
-
-QT_BEGIN_NAMESPACE
-
-#ifndef QT_STATIC
-# if defined(QT_BUILD_GUI_LIB)
-# define Q_GUI_EXPORT Q_DECL_EXPORT
-# else
-# define Q_GUI_EXPORT Q_DECL_IMPORT
-# endif
-#else
-# define Q_GUI_EXPORT
-#endif
-
-QT_END_NAMESPACE
+#include <QtGui/qtguiexports.h>
#endif // QTGUIGLOBAL_H