QmlProfiler: Add tests for QmlNote

Change-Id: Ida4a3ad0adf59d9c21d6405ea6dcbfea5d41ba71
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-06-07 14:15:17 +02:00
parent f9dcf28921
commit b326060da8
7 changed files with 146 additions and 4 deletions

View File

@@ -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 &note1, const QmlNote &note2);
bool operator!=(const QmlNote &note1, const QmlNote &note2);
QDataStream &operator>>(QDataStream &stream, QmlNote &note);
QDataStream &operator<<(QDataStream &stream, const QmlNote &note);