diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-04-28 16:02:54 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-05-06 10:27:09 +0000 |
commit | a53780924de223f56c5294d5ab9f501a602585bc (patch) | |
tree | eecd8cce209a9f59c339f78e86f98eda20ec2228 /src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | |
parent | 54b1106f4b5f912220f8dd1dc77129e81d59e05b (diff) |
QmlProfiler: Apply some code cosmetics
Change-Id: I772713aec3a6c25136174b39b853a9ef3ee42a0b
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp index c8c71a27c28..ed42ee2c253 100644 --- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp +++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp @@ -129,18 +129,14 @@ void QmlProfilerTraceTime::increaseEndTime(qint64 time) class QmlProfilerModelManager::QmlProfilerModelManagerPrivate { public: - QmlProfilerModelManagerPrivate(QmlProfilerModelManager *qq) : q(qq) {} - ~QmlProfilerModelManagerPrivate() {} - QmlProfilerModelManager *q; - QmlProfilerDataModel *model; QmlProfilerNotesModel *notesModel; QmlProfilerModelManager::State state; QmlProfilerTraceTime *traceTime; - QVector <double> partialCounts; - QVector <int> partialCountWeights; + QVector<double> partialCounts; + QVector<int> partialCountWeights; quint64 availableFeatures; quint64 visibleFeatures; quint64 recordedFeatures; @@ -152,7 +148,7 @@ public: QmlProfilerModelManager::QmlProfilerModelManager(Utils::FileInProjectFinder *finder, QObject *parent) : - QObject(parent), d(new QmlProfilerModelManagerPrivate(this)) + QObject(parent), d(new QmlProfilerModelManagerPrivate) { d->totalWeight = 0; d->previousProgress = 0; @@ -293,12 +289,12 @@ void QmlProfilerModelManager::addQmlEvent(Message message, RangeType rangeType, ndata2, ndata3, ndata4, ndata5); } -void QmlProfilerModelManager::addDebugMessage(QtMsgType type, qint64 timestamp, const QString &text, - const QmlEventLocation &location) +void QmlProfilerModelManager::addDebugMessage(qint64 timestamp, QtMsgType messageType, + const QString &text, const QmlEventLocation &location) { if (state() == AcquiringData) - d->model->addEvent(DebugMessage, MaximumRangeType, type, timestamp, 0, text, location, 0, 0, - 0, 0, 0); + d->model->addEvent(DebugMessage, MaximumRangeType, messageType, timestamp, 0, text, + location, 0, 0, 0, 0, 0); } void QmlProfilerModelManager::acquiringDone() @@ -443,7 +439,7 @@ void QmlProfilerModelManager::clear() setState(Empty); } -void QmlProfilerModelManager::prepareForWriting() +void QmlProfilerModelManager::startAcquiring() { setState(AcquiringData); } |