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.addActions(QmlProfilerTool::profilerContextMenuActions());
menu.addSeparator(); menu.addSeparator();
QAction *getGlobalStatsAction = menu.addAction(tr("Show Full Range")); QAction *getGlobalStatsAction = menu.addAction(tr("Show Full Range"));
if (!m_model->modelManager()->isRestrictedToRange()) getGlobalStatsAction->setEnabled(m_model->modelManager()->isRestrictedToRange());
getGlobalStatsAction->setEnabled(false);
QAction *resetAction = menu.addAction(tr("Reset Flame Graph")); QAction *resetAction = menu.addAction(tr("Reset Flame Graph"));
resetAction->setEnabled(m_content->rootObject()->property("zoomed").toBool()); resetAction->setEnabled(m_content->rootObject()->property("zoomed").toBool());