forked from qt-creator/qt-creator
Refactor the "proxy action" behavior of Command to Utils::ProxyAction
A generic action that acts as a proxy for another (changeable) action, like it is used for mostly all of the visible actions in Qt Creator through the action manager.
This commit is contained in:
@@ -136,10 +136,6 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *error_m
|
||||
Core::IMode *helloMode = new HelloMode;
|
||||
addAutoReleasedObject(helloMode);
|
||||
|
||||
// Add the Hello World action command to the mode manager (with 0 priority)
|
||||
Core::ModeManager *modeManager = core->modeManager();
|
||||
modeManager->addAction(command, 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user