aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilertraceview.cpp
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2015-03-24 07:40:21 +0100
committerEike Ziller <[email protected]>2015-03-24 07:40:21 +0100
commit9790d8aa00eba082d82b19a90f8ecd1ebb757a9f (patch)
tree8a3fe9b910d12f6a7724f384b2d1d4d960e76ffc /src/plugins/qmlprofiler/qmlprofilertraceview.cpp
parent674b798350868bf0ed7dae18aa5a84398dd6ef80 (diff)
parent044eeacde5ee1add8b06a8a53b86fd5c6991d488 (diff)
Merge remote-tracking branch 'origin/3.4'
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertraceview.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertraceview.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp
index 0a5e05f1f9f..0c4b3d431c9 100644
--- a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp
@@ -76,7 +76,6 @@ public:
QmlProfilerTraceViewPrivate(QmlProfilerTraceView *qq) : q(qq) {}
QmlProfilerTraceView *q;
- QmlProfilerStateManager *m_profilerState;
QmlProfilerTool *m_profilerTool;
QmlProfilerViewManager *m_viewContainer;
@@ -90,7 +89,7 @@ public:
Timeline::TimelineZoomControl *m_zoomControl;
};
-QmlProfilerTraceView::QmlProfilerTraceView(QWidget *parent, QmlProfilerTool *profilerTool, QmlProfilerViewManager *container, QmlProfilerModelManager *modelManager, QmlProfilerStateManager *profilerState)
+QmlProfilerTraceView::QmlProfilerTraceView(QWidget *parent, QmlProfilerTool *profilerTool, QmlProfilerViewManager *container, QmlProfilerModelManager *modelManager)
: QWidget(parent), d(new QmlProfilerTraceViewPrivate(this))
{
setObjectName(QLatin1String("QML Profiler"));
@@ -141,9 +140,6 @@ QmlProfilerTraceView::QmlProfilerTraceView(QWidget *parent, QmlProfilerTool *pro
// Connect this last so that it's executed after the models have updated their data.
connect(modelManager->qmlModel(), SIGNAL(changed()), d->m_modelProxy, SIGNAL(stateChanged()));
- connect(d->m_modelManager, SIGNAL(stateChanged()), this, SLOT(profilerDataModelStateChanged()));
-
- d->m_profilerState = profilerState;
// Minimum height: 5 rows of 20 pixels + scrollbar of 50 pixels + 20 pixels margin
setMinimumHeight(170);
@@ -308,23 +304,6 @@ void QmlProfilerTraceView::showContextMenu(QPoint position)
}
////////////////////////////////////////////////////////////////
-// Profiler State
-void QmlProfilerTraceView::profilerDataModelStateChanged()
-{
- switch (d->m_modelManager->state()) {
- case QmlProfilerDataState::Empty: break;
- case QmlProfilerDataState::ClearingData:
- d->m_mainView->hide();
- break;
- case QmlProfilerDataState::AcquiringData: break;
- case QmlProfilerDataState::ProcessingData: break;
- case QmlProfilerDataState::Done:
- d->m_mainView->show();
- break;
- default:
- break;
- }
-}
void QmlProfilerTraceView::changeEvent(QEvent *e)
{