QmlProfiler: Make TimelineModel usable from QML

Make the relevant member functions Q_INVOKABLE and properly notify
about the height change when data is loaded or cleared.

Change-Id: I7c1ee70942617af2045b84a2d8f0ab2adef72f52
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-10-30 14:59:57 +01:00
committed by Ulf Hermann
parent 0464c87773
commit e0d06f8681
3 changed files with 49 additions and 24 deletions

View File

@@ -101,6 +101,8 @@ void QmlProfilerTimelineModel::dataChanged()
default:
break;
}
emit labelsChanged();
}
int QmlProfilerTimelineModel::bindingLoopDest(int index) const