forked from qt-creator/qt-creator
Make some qHash and comparison operators overloads hidden friends
Restricts lookup scope more to necessary bits. Change-Id: Ia42c95aaa70534843b7f6a90bfc56d2a1202c612 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user