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/quicklayouts | |
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/quicklayouts')
-rw-r--r-- | src/quicklayouts/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/quicklayouts/qquicklayout_p.h | 4 | ||||
-rw-r--r-- | src/quicklayouts/qquicklayoutglobal_p.h | 18 | ||||
-rw-r--r-- | src/quicklayouts/qquicklinearlayout_p.h | 8 | ||||
-rw-r--r-- | src/quicklayouts/qquickstacklayout_p.h | 2 |
5 files changed, 10 insertions, 24 deletions
diff --git a/src/quicklayouts/CMakeLists.txt b/src/quicklayouts/CMakeLists.txt index 4717756587..407e143347 100644 --- a/src/quicklayouts/CMakeLists.txt +++ b/src/quicklayouts/CMakeLists.txt @@ -20,4 +20,6 @@ qt_internal_add_qml_module(QuickLayouts Qt::GuiPrivate Qt::QuickPrivate Qt::Qml + GENERATE_CPP_EXPORTS + GENERATE_PRIVATE_CPP_EXPORTS ) diff --git a/src/quicklayouts/qquicklayout_p.h b/src/quicklayouts/qquicklayout_p.h index a7cbceb915..03f760c51e 100644 --- a/src/quicklayouts/qquicklayout_p.h +++ b/src/quicklayouts/qquicklayout_p.h @@ -64,7 +64,7 @@ class QQuickLayoutAttached; Q_DECLARE_LOGGING_CATEGORY(lcQuickLayouts) class QQuickLayoutPrivate; -class Q_QUICKLAYOUT_PRIVATE_EXPORT QQuickLayout : public QQuickItem, public QQuickItemChangeListener +class Q_QUICKLAYOUTS_PRIVATE_EXPORT QQuickLayout : public QQuickItem, public QQuickItemChangeListener { Q_OBJECT @@ -177,7 +177,7 @@ protected: }; -class Q_QUICKLAYOUT_PRIVATE_EXPORT QQuickLayoutAttached : public QObject +class Q_QUICKLAYOUTS_PRIVATE_EXPORT QQuickLayoutAttached : public QObject { Q_OBJECT Q_PROPERTY(qreal minimumWidth READ minimumWidth WRITE setMinimumWidth NOTIFY minimumWidthChanged) diff --git a/src/quicklayouts/qquicklayoutglobal_p.h b/src/quicklayouts/qquicklayoutglobal_p.h index 7163d5a0d4..35729919c3 100644 --- a/src/quicklayouts/qquicklayoutglobal_p.h +++ b/src/quicklayouts/qquicklayoutglobal_p.h @@ -52,22 +52,6 @@ // #include <QtCore/qglobal.h> - -QT_BEGIN_NAMESPACE - -#if !defined(QT_STATIC) -# if defined(QT_BUILD_QUICKLAYOUTS_LIB) -# define Q_QUICKLAYOUT_EXPORT Q_DECL_EXPORT -# else -# define Q_QUICKLAYOUT_EXPORT Q_DECL_IMPORT -# endif -#else -# define Q_QUICKLAYOUT_EXPORT -#endif - - -#define Q_QUICKLAYOUT_PRIVATE_EXPORT Q_QUICKLAYOUT_EXPORT - -QT_END_NAMESPACE +#include <QtQuickLayouts/private/qtquicklayoutsexports_p.h> #endif // QQUICKLAYOUTGLOBAL_P_H diff --git a/src/quicklayouts/qquicklinearlayout_p.h b/src/quicklayouts/qquicklinearlayout_p.h index 2373e7ad43..8cb2748bf0 100644 --- a/src/quicklayouts/qquicklinearlayout_p.h +++ b/src/quicklayouts/qquicklinearlayout_p.h @@ -64,7 +64,7 @@ QT_BEGIN_NAMESPACE **/ class QQuickGridLayoutBasePrivate; -class Q_QUICKLAYOUT_PRIVATE_EXPORT QQuickGridLayoutBase : public QQuickLayout +class Q_QUICKLAYOUTS_PRIVATE_EXPORT QQuickGridLayoutBase : public QQuickLayout { Q_OBJECT @@ -148,7 +148,7 @@ public: ** **/ class QQuickGridLayoutPrivate; -class Q_QUICKLAYOUT_PRIVATE_EXPORT QQuickGridLayout : public QQuickGridLayoutBase +class Q_QUICKLAYOUTS_PRIVATE_EXPORT QQuickGridLayout : public QQuickGridLayoutBase { Q_OBJECT @@ -239,7 +239,7 @@ public: ** QQuickRowLayout ** **/ -class Q_QUICKLAYOUT_PRIVATE_EXPORT QQuickRowLayout : public QQuickLinearLayout +class Q_QUICKLAYOUTS_PRIVATE_EXPORT QQuickRowLayout : public QQuickLinearLayout { Q_OBJECT QML_NAMED_ELEMENT(RowLayout) @@ -256,7 +256,7 @@ public: ** QQuickColumnLayout ** **/ -class Q_QUICKLAYOUT_PRIVATE_EXPORT QQuickColumnLayout : public QQuickLinearLayout +class Q_QUICKLAYOUTS_PRIVATE_EXPORT QQuickColumnLayout : public QQuickLinearLayout { Q_OBJECT QML_NAMED_ELEMENT(ColumnLayout) diff --git a/src/quicklayouts/qquickstacklayout_p.h b/src/quicklayouts/qquickstacklayout_p.h index b09f2979e9..dc7ebe18ed 100644 --- a/src/quicklayouts/qquickstacklayout_p.h +++ b/src/quicklayouts/qquickstacklayout_p.h @@ -59,7 +59,7 @@ QT_BEGIN_NAMESPACE class QQuickStackLayoutPrivate; class QQuickStackLayoutAttached; -class Q_QUICKLAYOUT_PRIVATE_EXPORT QQuickStackLayout : public QQuickLayout +class Q_QUICKLAYOUTS_PRIVATE_EXPORT QQuickStackLayout : public QQuickLayout { Q_OBJECT Q_PROPERTY(int count READ count NOTIFY countChanged) |