QmlProfiler: Simplify a bit

Change-Id: I5e549895b31236205b4543eb7ec22a84f4c4af4c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2019-01-24 10:43:01 +01:00
parent df28f51c2f
commit 483cb9a485

View File

@@ -91,8 +91,7 @@ void FlameGraphView::contextMenuEvent(QContextMenuEvent *ev)
menu.addActions(QmlProfilerTool::profilerContextMenuActions());
menu.addSeparator();
QAction *getGlobalStatsAction = menu.addAction(tr("Show Full Range"));
if (!m_model->modelManager()->isRestrictedToRange())
getGlobalStatsAction->setEnabled(false);
getGlobalStatsAction->setEnabled(m_model->modelManager()->isRestrictedToRange());
QAction *resetAction = menu.addAction(tr("Reset Flame Graph"));
resetAction->setEnabled(m_content->rootObject()->property("zoomed").toBool());