diff options
author | Ulf Hermann <[email protected]> | 2015-12-04 13:02:12 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2016-01-06 14:22:43 +0000 |
commit | df4e46ff02a6a361770d86eec395338abaf74213 (patch) | |
tree | 1d434644377e9aceb3aa9e3073238bae0a6e85e0 /src/plugins/qmlprofiler/qmlprofilertraceview.cpp | |
parent | 01e4ba4a101c58035e7039ebe831cb1623984769 (diff) |
QmlProfiler: Reduce external interface of QQmlProfilerEventsWidget
Change-Id: I06a610cca606b98bc3f5741c1363b98f2b28d7eb
Reviewed-by: Joerg Bornemann <[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 0dbfb228cce..8a2a466d786 100644 --- a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp @@ -253,7 +253,7 @@ void QmlProfilerTraceView::showContextMenu(QPoint position) getLocalStatsAction->setEnabled(false); QAction *getGlobalStatsAction = menu.addAction(tr("Show Full Range in Events Pane")); - if (d->m_viewContainer->hasGlobalStats()) + if (!d->m_viewContainer->isEventsRestrictedToRange()) getGlobalStatsAction->setEnabled(false); if (d->m_zoomControl->traceDuration() > 0) { @@ -269,12 +269,11 @@ void QmlProfilerTraceView::showContextMenu(QPoint position) d->m_zoomControl->traceEnd()); } if (selectedAction == getLocalStatsAction) { - d->m_viewContainer->getStatisticsInRange( - d->m_viewContainer->selectionStart(), - d->m_viewContainer->selectionEnd()); + d->m_viewContainer->restrictEventsToRange(d->m_viewContainer->selectionStart(), + d->m_viewContainer->selectionEnd()); } if (selectedAction == getGlobalStatsAction) - d->m_viewContainer->getStatisticsInRange(-1, -1); + d->m_viewContainer->restrictEventsToRange(-1, -1); } } |