QmlProfiler: introduce properties for empty, hidden and displayName

Like this we can properly refer to them from QML.

Change-Id: I98378d543d307f78909191225e72c9d0404dfa1d
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-09-11 11:20:52 +02:00
parent 5799901bcc
commit 2b362de064
9 changed files with 78 additions and 5 deletions

View File

@@ -246,7 +246,7 @@ QVariantList RangeTimelineModel::labels() const
Q_D(const RangeTimelineModel);
QVariantList result;
if (d->expanded) {
if (d->expanded && !d->hidden) {
const QVector<QmlProfilerDataModel::QmlEventTypeData> &types =
d->modelManager->qmlModel()->getEventTypes();
for (int i = 1; i < d->expandedRowCount; i++) { // Ignore the -1 for the first row