From 2d9d4c5446e919232fadac29b7ed9b895a6c2ed2 Mon Sep 17 00:00:00 2001 From: Michael Winkelmann Date: Wed, 20 Jan 2021 21:00:08 +0100 Subject: [PATCH] QML Designer: Add missing export macros for annotation functions Change-Id: Iead74cc63aad65a33e3f7d78fc88012d2c823c59 Reviewed-by: Thomas Hartmann --- .../designercore/include/annotation.h | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/plugins/qmldesigner/designercore/include/annotation.h b/src/plugins/qmldesigner/designercore/include/annotation.h index 681c5ee0236..e00481d57ab 100644 --- a/src/plugins/qmldesigner/designercore/include/annotation.h +++ b/src/plugins/qmldesigner/designercore/include/annotation.h @@ -100,8 +100,9 @@ public: friend QDebug &operator<<(QDebug &stream, const Comment &comment); - friend QDataStream &operator<<(QDataStream &stream, const Comment &comment); - friend QDataStream &operator>>(QDataStream &stream, Comment &comment); + QMLDESIGNERCORE_EXPORT friend QDataStream &operator<<(QDataStream &stream, + const Comment &comment); + QMLDESIGNERCORE_EXPORT friend QDataStream &operator>>(QDataStream &stream, Comment &comment); private: QString m_title; @@ -132,8 +133,10 @@ public: friend QDebug &operator<<(QDebug &stream, const Annotation &annotation); - friend QDataStream &operator<<(QDataStream &stream, const Annotation &annotation); - friend QDataStream &operator>>(QDataStream &stream, Annotation &annotation); + QMLDESIGNERCORE_EXPORT friend QDataStream &operator<<(QDataStream &stream, + const Annotation &annotation); + QMLDESIGNERCORE_EXPORT friend QDataStream &operator>>(QDataStream &stream, + Annotation &annotation); private: QVector m_comments; @@ -142,12 +145,11 @@ private: QDebug &operator<<(QDebug &stream, const Comment &comment); QDebug &operator<<(QDebug &stream, const Annotation &annotation); -QDataStream &operator<<(QDataStream &stream, const Comment &comment); -QDataStream &operator>>(QDataStream &stream, Comment &comment); -QDataStream &operator<<(QDataStream &stream, const Annotation &annotation); -QDataStream &operator>>(QDataStream &stream, Annotation &annotation); - -} +QMLDESIGNERCORE_EXPORT QDataStream &operator<<(QDataStream &stream, const Comment &comment); +QMLDESIGNERCORE_EXPORT QDataStream &operator>>(QDataStream &stream, Comment &comment); +QMLDESIGNERCORE_EXPORT QDataStream &operator<<(QDataStream &stream, const Annotation &annotation); +QMLDESIGNERCORE_EXPORT QDataStream &operator>>(QDataStream &stream, Annotation &annotation); +} // namespace QmlDesigner Q_DECLARE_METATYPE(QmlDesigner::Comment); Q_DECLARE_METATYPE(QmlDesigner::Annotation);