Remove use of global state from InfoBar

It is initialized by the core plugin anyhow, so give it enough
information there to avoid accessing the global state later.

Change-Id: I39e7a9f32ef5c7930faf9ba751e75bebf57b507e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Eike Ziller
2017-10-27 14:56:06 +02:00
parent 89de112b6f
commit 58942de965
3 changed files with 32 additions and 12 deletions

View File

@@ -159,7 +159,7 @@ bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage)
addObject(m_editMode);
ModeManager::activateMode(m_editMode->id());
m_designMode = new DesignMode;
InfoBar::initializeGloballySuppressed();
InfoBar::initialize(ICore::settings(), creatorTheme());
}
IWizardFactory::initialize();