> ________________________________________ > From: [email protected] > [[email protected]] on behalf of Guido > Seifert [[email protected]] > Sent: 10 April 2013 19:18 > To: [email protected] > Subject: [Qt-creator] New IMode above Welcome > > Hi, > currently I am playing around with a new mode for the ctcreator. > I was able to create a plugin, which adds a new mode. It is displayed > in the mode bar above 'welcome', making 'welcome' the second in the > list. However, what I did not figure out yet, is how to make it the > default mode when the creator starts. Currently when the creator > starts the welcome is still shown initially. Any idea how to change > that? Preferably without changing the original qtcreator code?
I'll try hard not to ask why ... (but, why?) The welcome mode makes itself active in WelcomePlugin::extensionsInitialized(). If you want to hack around and force-make your mode the "startup mode", you can probably call Core::ModeManager::activateMode(myModeId) in response to Core::ICore::coreAboutToOpen(). Br, Eike -- Eike Ziller Senior Software Engineer Digia Germany GmbH Rudower Chaussee 13, D-12489 Berlin Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B, Geschäftsführer: Mika Pälsi, Juha Varelius, Anja Wasenius _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
