aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-05-02 12:18:57 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-05-03 15:00:50 +0000
commite5a38bacc4bcfd770f56122b86233ff35b0579ac (patch)
treedb03f5112d616cbab6f5b9401cf296fa759fa54b /src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
parent08655de4a5891ab3a8fe07970c826958be7c52fc (diff)
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>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
index 154e8448049..e03726a99ea 100644
--- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
@@ -55,7 +55,7 @@ static const char *ProfileFeatureNames[] = {
QT_TRANSLATE_NOOP("MainView", "Debug Messages")
};
-Q_STATIC_ASSERT(sizeof(ProfileFeatureNames) == sizeof(char *) * QmlDebug::MaximumProfileFeature);
+Q_STATIC_ASSERT(sizeof(ProfileFeatureNames) == sizeof(char *) * MaximumProfileFeature);
/////////////////////////////////////////////////////////////////////
QmlProfilerTraceTime::QmlProfilerTraceTime(QObject *parent) :
@@ -274,22 +274,15 @@ void QmlProfilerModelManager::setRecordedFeatures(quint64 features)
}
}
-const char *QmlProfilerModelManager::featureName(QmlDebug::ProfileFeature feature)
+const char *QmlProfilerModelManager::featureName(ProfileFeature feature)
{
return ProfileFeatureNames[feature];
}
-void QmlProfilerModelManager::addQmlEvent(QmlDebug::Message message,
- QmlDebug::RangeType rangeType,
- int detailType,
- qint64 startTime,
- qint64 length,
- const QString &data,
- const QmlDebug::QmlEventLocation &location,
- qint64 ndata1,
- qint64 ndata2,
- qint64 ndata3,
- qint64 ndata4,
+void QmlProfilerModelManager::addQmlEvent(Message message, RangeType rangeType, int detailType,
+ qint64 startTime, qint64 length, const QString &data,
+ const QmlEventLocation &location, qint64 ndata1,
+ qint64 ndata2, qint64 ndata3, qint64 ndata4,
qint64 ndata5)
{
// If trace start time was not explicitly set, use the first event
@@ -302,11 +295,11 @@ void QmlProfilerModelManager::addQmlEvent(QmlDebug::Message message,
}
void QmlProfilerModelManager::addDebugMessage(QtMsgType type, qint64 timestamp, const QString &text,
- const QmlDebug::QmlEventLocation &location)
+ const QmlEventLocation &location)
{
if (state() == AcquiringData)
- d->model->addQmlEvent(QmlDebug::DebugMessage, QmlDebug::MaximumRangeType, type, timestamp,
- 0, text, location, 0, 0, 0, 0, 0);
+ d->model->addQmlEvent(DebugMessage, MaximumRangeType, type, timestamp, 0, text, location, 0,
+ 0, 0, 0, 0);
}
void QmlProfilerModelManager::acquiringDone()