forked from qt-creator/qt-creator
Use new static ICore interface.
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -96,9 +96,6 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *errorMe
|
||||
Q_UNUSED(arguments)
|
||||
Q_UNUSED(errorMessage)
|
||||
|
||||
// Get the primary access point to the workbench.
|
||||
Core::ICore *core = Core::ICore::instance();
|
||||
|
||||
// Create a unique context for our own view, that will be used for the
|
||||
// menu entry later.
|
||||
Core::Context context("HelloWorld.MainView");
|
||||
@@ -108,7 +105,7 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *errorMe
|
||||
connect(helloWorldAction, SIGNAL(triggered()), SLOT(sayHelloWorld()));
|
||||
|
||||
// Register the action with the action manager
|
||||
Core::ActionManager *actionManager = core->actionManager();
|
||||
Core::ActionManager *actionManager = Core::ICore::actionManager();
|
||||
Core::Command *command =
|
||||
actionManager->registerAction(
|
||||
helloWorldAction, "HelloWorld.HelloWorldAction", context);
|
||||
|
||||
Reference in New Issue
Block a user