forked from qt-creator/qt-creator
Core: Inline ICore::init() into ICore constructor
More natural setup. Change-Id: I5a51cdec3f955e4b887613bd3dea4b25d485e844 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -157,12 +157,11 @@ bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
CheckableMessageBox::initialize(ICore::settings());
|
||||
new ActionManager(this);
|
||||
ActionManager::setPresentationModeEnabled(args.presentationMode);
|
||||
m_core = new ICore;
|
||||
if (args.overrideColor.isValid())
|
||||
ICore::setOverrideColor(args.overrideColor);
|
||||
m_core = new ICore;
|
||||
m_locator = new Locator;
|
||||
std::srand(unsigned(QDateTime::currentDateTime().toSecsSinceEpoch()));
|
||||
ICore::init();
|
||||
m_editMode = new EditMode;
|
||||
ModeManager::activateMode(m_editMode->id());
|
||||
m_folderNavigationWidgetFactory = new FolderNavigationWidgetFactory;
|
||||
|
||||
Reference in New Issue
Block a user