forked from qt-creator/qt-creator
QmlProfiler: Simplify a bit
Change-Id: I5e549895b31236205b4543eb7ec22a84f4c4af4c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user