diff options
author | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-01-06 14:00:34 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-01-12 13:05:17 +0100 |
commit | e40477cc8191035130da95fab3709fa86dbaacd5 (patch) | |
tree | 2af2da96b78b00dd8a08a33378a7d9d7f02046aa /src/plugins/coreplugin/coreplugin.cpp | |
parent | dc8602587917772cf42b9306ac273a33c4c60e1c (diff) | |
download | qt-creator-e40477cc8191035130da95fab3709fa86dbaacd5.tar.gz |
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 <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/coreplugin.cpp')
-rw-r--r-- | src/plugins/coreplugin/coreplugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); |