diff options
author | Ulf Hermann <[email protected]> | 2016-12-20 13:00:18 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2016-12-28 10:48:14 +0000 |
commit | 2ad8e27d53795a2cb306fb06d96e55a72b30860e (patch) | |
tree | 3d58ccc292f69e2600551545b3587d3195399b7f /src/plugins/qmlprofiler/qmlprofilertraceview.cpp | |
parent | beea69e48608cf2dbd7c8e149ef4d8b1cb04936d (diff) |
QmlProfiler: Make the views accessible from the view manager
And then, drop some methods we don't need anymore.
Change-Id: I057bdc012072abddca2df83918ee9a0460f78611
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertraceview.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilertraceview.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp index d861dd4927c..8530994fe52 100644 --- a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp @@ -267,11 +267,11 @@ void QmlProfilerTraceView::showContextMenu(QPoint position) menu.addSeparator(); QAction *getLocalStatsAction = menu.addAction(tr("Analyze Current Range")); - if (!d->m_viewContainer->hasValidSelection()) + if (!hasValidSelection()) getLocalStatsAction->setEnabled(false); QAction *getGlobalStatsAction = menu.addAction(tr("Analyze Full Range")); - if (!d->m_viewContainer->isEventsRestrictedToRange()) + if (!d->m_modelManager->isRestrictedToRange()) getGlobalStatsAction->setEnabled(false); if (d->m_zoomControl->traceDuration() > 0) { @@ -287,11 +287,10 @@ void QmlProfilerTraceView::showContextMenu(QPoint position) d->m_zoomControl->traceEnd()); } if (selectedAction == getLocalStatsAction) { - d->m_viewContainer->restrictEventsToRange(d->m_viewContainer->selectionStart(), - d->m_viewContainer->selectionEnd()); + d->m_modelManager->restrictToRange(selectionStart(), selectionEnd()); } if (selectedAction == getGlobalStatsAction) - d->m_viewContainer->restrictEventsToRange(-1, -1); + d->m_modelManager->restrictToRange(-1, -1); } } |