forked from qt-creator/qt-creator
QmlProfiler: Make members of QmlEventLocation private
You should not change them independently as that is error-prone. Change-Id: I07890a29b045492fe804b9537094dea763bc1b8d Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -655,9 +655,9 @@ void QmlProfilerStatisticsMainView::parseModel()
|
||||
|
||||
// metadata
|
||||
newRow.at(0)->setData(QVariant(typeIndex),TypeIdRole);
|
||||
newRow.at(0)->setData(QVariant(event.location.filename),FilenameRole);
|
||||
newRow.at(0)->setData(QVariant(event.location.line),LineRole);
|
||||
newRow.at(0)->setData(QVariant(event.location.column),ColumnRole);
|
||||
newRow.at(0)->setData(event.location.filename(), FilenameRole);
|
||||
newRow.at(0)->setData(event.location.line(), LineRole);
|
||||
newRow.at(0)->setData(event.location.column(), ColumnRole);
|
||||
|
||||
// append
|
||||
parentItem->appendRow(newRow);
|
||||
@@ -882,9 +882,9 @@ void QmlProfilerStatisticsRelativesView::rebuildTree(
|
||||
type.data);
|
||||
|
||||
newRow.at(0)->setData(QVariant(typeIndex), TypeIdRole);
|
||||
newRow.at(0)->setData(QVariant(type.location.filename),FilenameRole);
|
||||
newRow.at(0)->setData(QVariant(type.location.line),LineRole);
|
||||
newRow.at(0)->setData(QVariant(type.location.column),ColumnRole);
|
||||
newRow.at(0)->setData(type.location.filename(), FilenameRole);
|
||||
newRow.at(0)->setData(type.location.line(), LineRole);
|
||||
newRow.at(0)->setData(type.location.column(), ColumnRole);
|
||||
newRow.at(1)->setData(QVariant(QmlProfilerStatisticsMainView::nameForType(type.rangeType)));
|
||||
newRow.at(2)->setData(QVariant(event.duration));
|
||||
newRow.at(3)->setData(QVariant(event.calls));
|
||||
|
||||
Reference in New Issue
Block a user