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:
@@ -48,7 +48,6 @@ void FlameGraphModelTest::generateData(QmlProfilerModelManager *manager)
|
||||
QmlEventType type;
|
||||
|
||||
event.setTypeIndex(-1);
|
||||
type.location.filename = QLatin1String("somefile.js");
|
||||
type.displayName.clear();
|
||||
type.data = QLatin1String("funcfunc");
|
||||
type.rangeType = MaximumRangeType;
|
||||
@@ -61,8 +60,7 @@ void FlameGraphModelTest::generateData(QmlProfilerModelManager *manager)
|
||||
while (i < 10) {
|
||||
int typeIndex = -1;
|
||||
if (i < 5) {
|
||||
type.location.line = i;
|
||||
type.location.column = 20 - i;
|
||||
type.location = QmlEventLocation("somefile.js", i, 20 - i);
|
||||
type.rangeType = static_cast<RangeType>(static_cast<int>(Javascript) - i);
|
||||
typeIndex = manager->qmlModel()->addEventType(type);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user