QmlProfiler: Remove a few uses of ActionManager::instance()

The used functions are static nowadays.

Change-Id: I1c7ce9765fba111fd3104cf151a519fd89818081
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
hjk
2018-02-01 12:06:22 +01:00
parent 0eb7bab20c
commit 75e71d5997

View File

@@ -831,15 +831,12 @@ void QmlProfilerTool::profilerDataModelStateChanged()
QList <QAction *> QmlProfilerTool::profilerContextMenuActions() QList <QAction *> QmlProfilerTool::profilerContextMenuActions()
{ {
QList <QAction *> commonActions; QList <QAction *> commonActions;
ActionManager *manager = ActionManager::instance();
if (manager) { if (Command *command = ActionManager::command(Constants::QmlProfilerLoadActionId))
Command *command = manager->command(Constants::QmlProfilerLoadActionId); commonActions << command->action();
if (command) if (Command *command = ActionManager::command(Constants::QmlProfilerSaveActionId))
commonActions << command->action(); commonActions << command->action();
command = manager->command(Constants::QmlProfilerSaveActionId);
if (command)
commonActions << command->action();
}
return commonActions; return commonActions;
} }