diff options
Diffstat (limited to 'src/plugins/qmlprofiler/qmlnote.h')
-rw-r--r-- | src/plugins/qmlprofiler/qmlnote.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/plugins/qmlprofiler/qmlnote.h b/src/plugins/qmlprofiler/qmlnote.h index 1178ccaca6..919d215faf 100644 --- a/src/plugins/qmlprofiler/qmlnote.h +++ b/src/plugins/qmlprofiler/qmlnote.h @@ -48,10 +48,13 @@ public: void setText(const QString &text) { m_text = text; } void setLoaded(bool loaded) { m_loaded = loaded; } -private: + friend bool operator==(const QmlNote ¬e1, const QmlNote ¬e2); + friend bool operator!=(const QmlNote ¬e1, const QmlNote ¬e2); + friend QDataStream &operator>>(QDataStream &stream, QmlNote ¬e); friend QDataStream &operator<<(QDataStream &stream, const QmlNote ¬e); +private: int m_typeIndex; int m_collapsedRow; qint64 m_startTime; @@ -60,12 +63,6 @@ private: bool m_loaded; }; -bool operator==(const QmlNote ¬e1, const QmlNote ¬e2); -bool operator!=(const QmlNote ¬e1, const QmlNote ¬e2); - -QDataStream &operator>>(QDataStream &stream, QmlNote ¬e); -QDataStream &operator<<(QDataStream &stream, const QmlNote ¬e); - } // namespace QmlProfiler Q_DECLARE_METATYPE(QmlProfiler::QmlNote) |