a0f9aef11b
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> |
||
---|---|---|
.. | ||
externalsites | ||
includes | ||
includes-online | ||
template | ||
compat.qdocconf | ||
config.qdocconf | ||
externalsites.qdocconf | ||
fileextensions.qdocconf | ||
html-config.qdocconf | ||
html-footer-online.qdocconf | ||
html-footer.qdocconf | ||
html-header-offline.qdocconf | ||
html-header-online.qdocconf | ||
macros-online.qdocconf | ||
macros.qdocconf | ||
manifest-meta.qdocconf | ||
qt-cpp-defines.qdocconf | ||
qt-html-templates-offline-simple.qdocconf | ||
qt-html-templates-offline.qdocconf | ||
qt-html-templates-online.qdocconf | ||
qt-module-defaults-offline.qdocconf | ||
qt-module-defaults-online-commercial.qdocconf | ||
qt-module-defaults-online.qdocconf | ||
qt-module-defaults.qdocconf |