QmlProfiler: Add special model for notes

Change-Id: Ia0acbc5e0a02563cf497594b67a5f7a67488fb79
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-09-26 15:49:49 +02:00
parent 0c107b33d1
commit 350615cc71
9 changed files with 445 additions and 3 deletions

View File

@@ -60,11 +60,20 @@ public:
qint64 numericData5;
};
struct QmlEventNoteData {
int typeIndex;
qint64 startTime;
qint64 duration;
QString text;
};
explicit QmlProfilerDataModel(Utils::FileInProjectFinder *fileFinder, QmlProfilerModelManager *parent = 0);
const QVector<QmlEventData> &getEvents() const;
const QVector<QmlEventTypeData> &getEventTypes() const;
const QVector<QmlEventNoteData> &getEventNotes() const;
void setData(const QVector<QmlEventTypeData> &types, const QVector<QmlEventData> &events);
void setNoteData(const QVector<QmlEventNoteData> &notes);
int count() const;
virtual void clear();