Make HelloWorld plugin always compile, mark as experimental

Task-Nr: QTCREATORBUG-2269
This commit is contained in:
dt
2010-09-06 14:10:30 +02:00
parent fc3a23240b
commit 65c929fa2a
3 changed files with 4 additions and 5 deletions

View File

@@ -30,6 +30,7 @@
#include "helloworldplugin.h"
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/basemode.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/icore.h>
@@ -77,9 +78,7 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *error_m
// Create a unique context id for our own view, that will be used for the
// menu entry later.
QList<int> context = QList<int>()
<< core->uniqueIDManager()->uniqueIdentifier(
QLatin1String("HelloWorld.MainView"));
Core::Context context("HelloWorld.MainView");
// Create an action to be triggered by a menu entry
QAction *helloWorldAction = new QAction(tr("Say \"&Hello World!\""), this);