QML Designer: Add missing export macros for annotation functions

Change-Id: Iead74cc63aad65a33e3f7d78fc88012d2c823c59
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Michael Winkelmann
2021-01-20 21:00:08 +01:00
parent 7f73675bc8
commit 2d9d4c5446

View File

@@ -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<Comment> 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);