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:
@@ -168,9 +168,9 @@ QVariant FlameGraphModel::lookup(const FlameGraphData &stats, int role) const
|
||||
const QmlEventType &type = typeList[stats.typeIndex];
|
||||
|
||||
switch (role) {
|
||||
case FilenameRole: return type.location.filename;
|
||||
case LineRole: return type.location.line;
|
||||
case ColumnRole: return type.location.column;
|
||||
case FilenameRole: return type.location.filename();
|
||||
case LineRole: return type.location.line();
|
||||
case ColumnRole: return type.location.column();
|
||||
case TypeRole: return nameForType(type.rangeType);
|
||||
case RangeTypeRole: return type.rangeType;
|
||||
case DetailsRole: return type.data.isEmpty() ?
|
||||
|
||||
Reference in New Issue
Block a user