forked from qt-creator/qt-creator
QmlProfiler: Add tests for QmlNote
Change-Id: Ida4a3ad0adf59d9c21d6405ea6dcbfea5d41ba71 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -32,8 +32,8 @@ namespace QmlProfiler {
|
||||
class QmlNote {
|
||||
|
||||
public:
|
||||
QmlNote(int typeIndex = -1, qint64 startTime = -1, qint64 duration = -1,
|
||||
const QString &text = QString()) :
|
||||
QmlNote(int typeIndex = -1, qint64 startTime = -1, qint64 duration = 0,
|
||||
const QString &text = QString()) :
|
||||
m_typeIndex(typeIndex), m_startTime(startTime), m_duration(duration), m_text(text)
|
||||
{}
|
||||
|
||||
@@ -54,6 +54,9 @@ private:
|
||||
QString m_text;
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user