[Qt-creator] Add new mode in QtCreator
apoenitz at t-online.de
Sat Sep 7 00:30:09 CEST 2019
On Fri, Sep 06, 2019 at 05:16:02PM +0200, Francesc Martinez wrote:
> I'm trying to build a plugin that adds a new mode into QtCreator. The
> problem is that ModeManager class has addMode as private.
> I can addAction(...) and addProjectSelector(...) but I cannot find the way
> to add a new mode with my custom widget.
> The plugin I want to do, is basically a GIT view. So, instead of showing
> all the GIT related stuff (diff, commit, ...) windows, I want a separate
> Do you have any suggestions?
ModeManager::addMode is called from the IMode constructor, so you need
an instance of an IMode derived class (typically as data member of
your plugin's private implementation)
More information about the Qt-creator