diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2021-06-29 15:27:51 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2021-11-02 16:32:25 +0100 |
commit | 250d6269e9f60021d88a574d04941ab342afb632 (patch) | |
tree | b2630f309c5e94384b739e15d8c6a69e2e137101 /src/qmlxmllistmodel | |
parent | 6b4d3613326b38bc05c813c449b31affd9c3795a (diff) |
Migrate to autogenerated cpp exports
Replace the hardcoded cpp exports with a generated one where it's
applicable.
Task-number: QTBUG-90492
Change-Id: I4af021bf828e05c8d6f3f975befd3b6b2cf63462
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/qmlxmllistmodel')
-rw-r--r-- | src/qmlxmllistmodel/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/qmlxmllistmodel/qtqmlxmllistmodelglobal_p.h | 17 |
2 files changed, 3 insertions, 16 deletions
diff --git a/src/qmlxmllistmodel/CMakeLists.txt b/src/qmlxmllistmodel/CMakeLists.txt index 3a74462081..1938ed3158 100644 --- a/src/qmlxmllistmodel/CMakeLists.txt +++ b/src/qmlxmllistmodel/CMakeLists.txt @@ -17,6 +17,8 @@ qt_internal_add_qml_module(QmlXmlListModel Qt::Qml PRIVATE_MODULE_INTERFACE Qt::CorePrivate + GENERATE_CPP_EXPORTS + GENERATE_PRIVATE_CPP_EXPORTS ) qt_internal_add_docs(QmlXmlListModel diff --git a/src/qmlxmllistmodel/qtqmlxmllistmodelglobal_p.h b/src/qmlxmllistmodel/qtqmlxmllistmodelglobal_p.h index d124891ef3..7b0d833333 100644 --- a/src/qmlxmllistmodel/qtqmlxmllistmodelglobal_p.h +++ b/src/qmlxmllistmodel/qtqmlxmllistmodelglobal_p.h @@ -52,21 +52,6 @@ // #include <QtCore/qglobal.h> - -QT_BEGIN_NAMESPACE - -#if !defined(QT_STATIC) -# if defined(QT_BUILD_QMLXMLLISTMODEL_LIB) -# define Q_QMLXMLLISTMODEL_EXPORT Q_DECL_EXPORT -# else -# define Q_QMLXMLLISTMODEL_EXPORT Q_DECL_IMPORT -# endif -#else -# define Q_QMLXMLLISTMODEL_EXPORT -#endif - -#define Q_QMLXMLLISTMODEL_PRIVATE_EXPORT Q_QMLXMLLISTMODEL_EXPORT - -QT_END_NAMESPACE +#include <QtQmlXmlListModel/private/qtqmlxmllistmodelexports_p.h> #endif // QTQMLXMLLISTMODELGLOBAL_P_H |