qt5base-lts/qmake
Marc Mutz a0f9aef11b Long live Q_GADGET_EXPORT!
Like Q_NAMESPACE_EXPORT for Q_NAMESPACE, this variant of Q_GADGET
allows passing an export macro. This is useful to avoid exporting the
whole class just to get the staticMetaObject hidden therein exported.

Before anyone asks: No, we don't need Q_OBJECT_EXPORT, because QObject
subclasses, being polymorphic, always need to have a class-level
export macro (to export their vtable), but while that technique also
works for value classes (the Q_GADGET audience), it is not desirable
for them, because it makes inline functions exported in Windows debug
builds, which is not what we want, because it needlessly restricts
what you can to with the inline functions (e.g. remove).

[ChangeLog][QtCore] Added the Q_GADGET_EXPORT macro, which is like
Q_GADGET, but allows passing an export macro (like Q_NAMESPACE_EXPORT
for Q_NAMESPACE).

Fixes: QTBUG-55458
Change-Id: I546297de1e8aa45d83381991bcd3fbca61e1eef0
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2021-11-27 01:25:10 +01:00
..
doc Doc: Fix qdoc warnings 2021-11-11 11:34:49 +01:00
generators Long live Q_GADGET_EXPORT! 2021-11-27 01:25:10 +01:00
library QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
cachekeys.h qmake: Clear caches before exiting 2021-05-06 23:49:20 +02:00
CMakeLists.txt Move the 'qmake' feature to src/tools/configure.cmake 2021-11-19 20:44:51 +01:00
main.cpp QDirIterator: add nextFileInfo() 2021-07-28 15:16:42 +02:00
meta.cpp qmake: Remove dead code 2019-04-05 07:48:34 +00:00
meta.h qmake: Remove dead code 2019-04-05 07:48:34 +00:00
option.cpp Fix "qmake -spec foo" call for cross builds 2021-04-26 10:59:32 +02:00
option.h Move the common qmake sources into a object library 2021-03-11 15:46:34 +01:00
project.cpp qmake: Clear caches before exiting 2021-05-06 23:49:20 +02:00
project.h Port qmake from QStringRef to QStringView 2020-06-05 09:07:14 +02:00
property.cpp Add support for various output formats for QMakeProperty 2021-03-12 13:20:00 +01:00
property.h Add support for various output formats for QMakeProperty 2021-03-12 13:20:00 +01:00
propertyprinter.cpp Add support for various output formats for QMakeProperty 2021-03-12 13:20:00 +01:00
propertyprinter.h Add support for various output formats for QMakeProperty 2021-03-12 13:20:00 +01:00
qmake_pch.h Move QRegExp and its remaining mentions out of QtCore 2020-07-13 10:53:23 +02:00
qmakelibraryinfo.cpp Change qt.conf key Qml2Imports to QmlImports 2021-11-19 16:44:32 +01:00
qmakelibraryinfo.h Unify QLibraryInfo settings 2021-03-17 11:57:11 +01:00