From e40477cc8191035130da95fab3709fa86dbaacd5 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 6 Jan 2015 14:00:34 +0100 Subject: ActionManager: transfer ownership from main window to core plugin Also make a bit less dependent on main window: - Menus do not need to start with main window as parent. - Centering the presentation label on the main window is wrong in the presence of extra windows anyhow. It should be centered on the active window. Unfortunately, actions still must be added to the main window, because actions that are not children of visible widgets do not trigger. Change-Id: Ibb99644a3723de476db465ebe6a9cdc0820ea692 Reviewed-by: Tobias Hunger --- src/plugins/coreplugin/coreplugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/coreplugin/coreplugin.cpp') diff --git a/src/plugins/coreplugin/coreplugin.cpp b/src/plugins/coreplugin/coreplugin.cpp index df8659ffe7..320536fc88 100644 --- a/src/plugins/coreplugin/coreplugin.cpp +++ b/src/plugins/coreplugin/coreplugin.cpp @@ -167,6 +167,7 @@ void CorePlugin::parseArguments(const QStringList &arguments) bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage) { + ActionManager::initialize(this); Theme::initialPalette(); // Initialize palette before setting it qsrand(QDateTime::currentDateTime().toTime_t()); parseArguments(arguments); -- cgit v1.2.1