diff --git a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp index 048a76033f9..552a8ad18cf 100644 --- a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp @@ -71,16 +71,10 @@ class QmlProfilerTraceView::QmlProfilerTraceViewPrivate public: QmlProfilerTraceViewPrivate(QmlProfilerTraceView *qq) : q(qq) {} QmlProfilerTraceView *q; - QmlProfilerViewManager *m_viewContainer; - - QSize m_sizeHint; - QQuickWidget *m_mainView; QmlProfilerModelManager *m_modelManager; Timeline::TimelineModelAggregator *m_modelProxy; - - Timeline::TimelineZoomControl *m_zoomControl; }; diff --git a/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp b/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp index 1c4a67e5b93..22fb59934ed 100644 --- a/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp @@ -34,7 +34,6 @@ #include #include -#include #include #include @@ -81,8 +80,6 @@ void QmlProfilerViewManager::createViews() QTC_ASSERT(d->profilerModelManager, return); QTC_ASSERT(d->profilerState, return); - //Utils::FancyMainWindow *mw = Debugger::mainWindow(); - d->traceView = new QmlProfilerTraceView(0, this, d->profilerModelManager); d->traceView->setWindowTitle(tr("Timeline")); connect(d->traceView, &QmlProfilerTraceView::gotoSourceLocation, @@ -103,11 +100,6 @@ void QmlProfilerViewManager::createViews() if (d->eventsViewFactory) d->eventsViews.append(d->eventsViewFactory->create(0, d->profilerModelManager)); - // Clear settings if the new views aren't there yet. Otherwise we get glitches - QSettings *settings = Core::ICore::settings(); - settings->beginGroup(QLatin1String("AnalyzerViewSettings_") + - QLatin1String(QmlProfiler::Constants::QmlProfilerPerspectiveId)); - foreach (QmlProfilerEventsView *view, d->eventsViews) { connect(view, &QmlProfilerEventsView::typeSelected, this, &QmlProfilerViewManager::typeSelected); @@ -122,14 +114,9 @@ void QmlProfilerViewManager::createViews() QByteArray dockId = view->objectName().toLatin1(); perspective.addOperation({dockId, view, Constants::QmlProfilerTimelineDockId, Perspective::AddToTab}); new QmlProfilerStateWidget(d->profilerState, d->profilerModelManager, view); - -// if (!settings->contains(view->parent()->objectName())) // parent() is QDockWidget. -// settings->remove(QString()); } perspective.addOperation({Constants::QmlProfilerTimelineDockId, 0, {}, Perspective::Raise}); Debugger::registerPerspective(Constants::QmlProfilerPerspectiveId, perspective); - - settings->endGroup(); } bool QmlProfilerViewManager::hasValidSelection() const