forked from qt-creator/qt-creator
Move QmlProfiler specific files from qmldebug to qmlprofiler
These file were not used anywhere else and had no business to be in qmldebug to begin with. Moving them allows us to drop a number of namespace qualifications and forces us to rename a few local symbols in other classes in order to avoid name clashes. Change-Id: I658ed455eec027cbaddacf2980d2ea6827ae6205 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -28,10 +28,8 @@
|
||||
namespace QmlProfiler {
|
||||
|
||||
QmlProfilerTimelineModel::QmlProfilerTimelineModel(QmlProfilerModelManager *modelManager,
|
||||
QmlDebug::Message message,
|
||||
QmlDebug::RangeType rangeType,
|
||||
QmlDebug::ProfileFeature mainFeature,
|
||||
QObject *parent) :
|
||||
Message message, RangeType rangeType,
|
||||
ProfileFeature mainFeature, QObject *parent) :
|
||||
TimelineModel(modelManager->registerModelProxy(), parent),
|
||||
m_message(message), m_rangeType(rangeType), m_mainFeature(mainFeature),
|
||||
m_modelManager(modelManager)
|
||||
@@ -44,17 +42,17 @@ QmlProfilerTimelineModel::QmlProfilerTimelineModel(QmlProfilerModelManager *mode
|
||||
announceFeatures(1ULL << m_mainFeature);
|
||||
}
|
||||
|
||||
QmlDebug::RangeType QmlProfilerTimelineModel::rangeType() const
|
||||
RangeType QmlProfilerTimelineModel::rangeType() const
|
||||
{
|
||||
return m_rangeType;
|
||||
}
|
||||
|
||||
QmlDebug::Message QmlProfilerTimelineModel::message() const
|
||||
Message QmlProfilerTimelineModel::message() const
|
||||
{
|
||||
return m_message;
|
||||
}
|
||||
|
||||
QmlDebug::ProfileFeature QmlProfilerTimelineModel::mainFeature() const
|
||||
ProfileFeature QmlProfilerTimelineModel::mainFeature() const
|
||||
{
|
||||
return m_mainFeature;
|
||||
}
|
||||
@@ -133,7 +131,7 @@ QVariantMap QmlProfilerTimelineModel::locationFromTypeId(int index) const
|
||||
if (id >= types.length())
|
||||
return result;
|
||||
|
||||
const QmlDebug::QmlEventLocation &location = types.at(id).location;
|
||||
const QmlEventLocation &location = types.at(id).location;
|
||||
|
||||
result.insert(QStringLiteral("file"), location.filename);
|
||||
result.insert(QStringLiteral("line"), location.line);
|
||||
|
||||
Reference in New Issue
Block a user