summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2011-05-11 12:50:53 +0200
committerhjk <qtc-committer@nokia.com>2011-05-11 14:42:16 +0200
commit0581219acb74c2354775bccc683e15947f22466a (patch)
tree72d4cc6a8f329c0f11f6b242a978bb3ec9aa8178 /doc
parentc450abfe3f2f80cc6d3a0740cd1906a2952da5c4 (diff)
downloadqt-creator-0581219acb74c2354775bccc683e15947f22466a.tar.gz
pluginhowto: compile fix
Diffstat (limited to 'doc')
-rw-r--r--doc/pluginhowto/examples/menu/addingmenu/donothingplugin.cpp15
-rw-r--r--doc/pluginhowto/examples/menu/addingmenu/donothingplugin.h2
-rw-r--r--doc/pluginhowto/examples/menu/placingmenu/donothingplugin.cpp19
-rw-r--r--doc/pluginhowto/examples/menu/placingmenu/donothingplugin.h2
-rw-r--r--doc/pluginhowto/examples/menu/registeringmenuitem/donothingplugin.cpp19
-rw-r--r--doc/pluginhowto/examples/menu/registeringmenuitem/donothingplugin.h2
-rw-r--r--doc/pluginhowto/examples/menu/respondingtomenuitems/donothingplugin.cpp15
-rw-r--r--doc/pluginhowto/examples/menu/respondingtomenuitems/donothingplugin.h2
8 files changed, 28 insertions, 48 deletions
diff --git a/doc/pluginhowto/examples/menu/addingmenu/donothingplugin.cpp b/doc/pluginhowto/examples/menu/addingmenu/donothingplugin.cpp
index e1a029865d..32e1ff267e 100644
--- a/doc/pluginhowto/examples/menu/addingmenu/donothingplugin.cpp
+++ b/doc/pluginhowto/examples/menu/addingmenu/donothingplugin.cpp
@@ -57,20 +57,15 @@ DoNothingPlugin::DoNothingPlugin()
// Do nothing
}
-DoNothingPlugin::~DoNothingPlugin()
-{
- // Do notning
-}
-
void DoNothingPlugin::extensionsInitialized()
{
// Do nothing
}
-bool DoNothingPlugin::initialize(const QStringList &args, QString *errMsg)
+bool DoNothingPlugin::initialize(const QStringList &args, QString *errorMessage)
{
Q_UNUSED(args);
- Q_UNUSED(errMsg);
+ Q_UNUSED(errorMessage);
// Fetch the action manager
Core::ActionManager *am = Core::ICore::instance()->actionManager();
@@ -82,11 +77,11 @@ bool DoNothingPlugin::initialize(const QStringList &args, QString *errMsg)
// Create a command for "DoNothing".
QAction *action = new QAction(tr("DoNothing"),this);
Core::Command *cmd = am->registerAction(action,
- QLatin1String("DoNothingPlugin.DoNothing"),
- Core::Context(Core::Constants::C_GLOBAL));
+ "DoNothingPlugin.DoNothing", Core::Context(Core::Constants::C_GLOBAL));
// Add DoNothing menu to the menubar
- am->actionContainer(Core::Constants::M_TOOLS)->addMenu(ac, Core::Constants::G_DEFAULT_THREE);
+ am->actionContainer(Core::Constants::M_TOOLS)
+ ->addMenu(ac, Core::Constants::G_DEFAULT_THREE);
// Add the "DoNothing" action to the DoNothing menu
ac->addAction(cmd);
diff --git a/doc/pluginhowto/examples/menu/addingmenu/donothingplugin.h b/doc/pluginhowto/examples/menu/addingmenu/donothingplugin.h
index 0c8944d674..03aeb75def 100644
--- a/doc/pluginhowto/examples/menu/addingmenu/donothingplugin.h
+++ b/doc/pluginhowto/examples/menu/addingmenu/donothingplugin.h
@@ -47,7 +47,7 @@ class DoNothingPlugin : public ExtensionSystem::IPlugin
public:
DoNothingPlugin();
- ~DoNothingPlugin();
+
void extensionsInitialized();
bool initialize(const QStringList &arguments, QString *errorString);
ShutdownFlag shutdown();
diff --git a/doc/pluginhowto/examples/menu/placingmenu/donothingplugin.cpp b/doc/pluginhowto/examples/menu/placingmenu/donothingplugin.cpp
index 526b7cd5c5..33b357b413 100644
--- a/doc/pluginhowto/examples/menu/placingmenu/donothingplugin.cpp
+++ b/doc/pluginhowto/examples/menu/placingmenu/donothingplugin.cpp
@@ -37,6 +37,7 @@
****************************************************************************/
#include "donothingplugin.h"
+
#include <coreplugin/coreconstants.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/command.h>
@@ -44,11 +45,11 @@
#include <coreplugin/icore.h>
#include <coreplugin/icontext.h>
-#include <QKeySequence>
-#include <QStringList>
-#include <QMessageBox>
#include <QAction>
+#include <QKeySequence>
#include <QMenu>
+#include <QMessageBox>
+#include <QStringList>
#include <QtPlugin>
DoNothingPlugin::DoNothingPlugin()
@@ -56,20 +57,15 @@ DoNothingPlugin::DoNothingPlugin()
// Do nothing
}
-DoNothingPlugin::~DoNothingPlugin()
-{
- // Do notning
-}
-
void DoNothingPlugin::extensionsInitialized()
{
// Do nothing
}
-bool DoNothingPlugin::initialize(const QStringList &args, QString *errMsg)
+bool DoNothingPlugin::initialize(const QStringList &args, QString *errorMessage)
{
Q_UNUSED(args);
- Q_UNUSED(errMsg);
+ Q_UNUSED(errorMessage);
// Fetch the action manager
Core::ActionManager *am = Core::ICore::instance()->actionManager();
@@ -77,8 +73,7 @@ bool DoNothingPlugin::initialize(const QStringList &args, QString *errMsg)
// Create a command for "DoNothing".
QAction *action = new QAction(tr("DoNothing"),this);
Core::Command *cmd = am->registerAction(action,
- QLatin1String("DoNothingPlugin.DoNothing"),
- Core::Context(Core::Constants::C_GLOBAL));
+ "DoNothingPlugin.DoNothing", Core::Context(Core::Constants::C_GLOBAL));
// Add the "DoNothing" action to the tools menu
am->actionContainer(Core::Constants::M_TOOLS)->addAction(cmd, Core::Constants::G_DEFAULT_THREE);
diff --git a/doc/pluginhowto/examples/menu/placingmenu/donothingplugin.h b/doc/pluginhowto/examples/menu/placingmenu/donothingplugin.h
index cfb7443c31..1e19357303 100644
--- a/doc/pluginhowto/examples/menu/placingmenu/donothingplugin.h
+++ b/doc/pluginhowto/examples/menu/placingmenu/donothingplugin.h
@@ -47,7 +47,7 @@ class DoNothingPlugin : public ExtensionSystem::IPlugin
public:
DoNothingPlugin();
- ~DoNothingPlugin();
+
void extensionsInitialized();
bool initialize(const QStringList &arguments, QString *errorString);
ShutdownFlag shutdown();
diff --git a/doc/pluginhowto/examples/menu/registeringmenuitem/donothingplugin.cpp b/doc/pluginhowto/examples/menu/registeringmenuitem/donothingplugin.cpp
index b3d22f42fb..219daa93be 100644
--- a/doc/pluginhowto/examples/menu/registeringmenuitem/donothingplugin.cpp
+++ b/doc/pluginhowto/examples/menu/registeringmenuitem/donothingplugin.cpp
@@ -37,6 +37,7 @@
****************************************************************************/
#include "donothingplugin.h"
+
#include <coreplugin/coreconstants.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/command.h>
@@ -44,11 +45,11 @@
#include <coreplugin/icore.h>
#include <coreplugin/icontext.h>
-#include <QKeySequence>
-#include <QStringList>
-#include <QMessageBox>
#include <QAction>
+#include <QKeySequence>
#include <QMenu>
+#include <QMessageBox>
+#include <QStringList>
#include <QtPlugin>
DoNothingPlugin::DoNothingPlugin()
@@ -56,20 +57,15 @@ DoNothingPlugin::DoNothingPlugin()
// Do nothing
}
-DoNothingPlugin::~DoNothingPlugin()
-{
- // Do notning
-}
-
void DoNothingPlugin::extensionsInitialized()
{
// Do nothing
}
-bool DoNothingPlugin::initialize(const QStringList &args, QString *errMsg)
+bool DoNothingPlugin::initialize(const QStringList &args, QString *errorMessage)
{
Q_UNUSED(args);
- Q_UNUSED(errMsg);
+ Q_UNUSED(errorMessage);
// Fetch the action manager
Core::ActionManager *am = Core::ICore::instance()->actionManager();
@@ -77,8 +73,7 @@ bool DoNothingPlugin::initialize(const QStringList &args, QString *errMsg)
// Create a command for "DoNothing".
QAction *action = new QAction(tr("DoNothing"),this);
Core::Command* cmd = am->registerAction(action,
- QLatin1String("DoNothingPlugin.DoNothing"),
- Core::Context(Core::Constants::C_GLOBAL));
+ "DoNothingPlugin.DoNothing", Core::Context(Core::Constants::C_GLOBAL));
// Add the "DoNothing" action to the tools menu
am->actionContainer(Core::Constants::M_TOOLS)->addAction(cmd);
diff --git a/doc/pluginhowto/examples/menu/registeringmenuitem/donothingplugin.h b/doc/pluginhowto/examples/menu/registeringmenuitem/donothingplugin.h
index cfb7443c31..1e19357303 100644
--- a/doc/pluginhowto/examples/menu/registeringmenuitem/donothingplugin.h
+++ b/doc/pluginhowto/examples/menu/registeringmenuitem/donothingplugin.h
@@ -47,7 +47,7 @@ class DoNothingPlugin : public ExtensionSystem::IPlugin
public:
DoNothingPlugin();
- ~DoNothingPlugin();
+
void extensionsInitialized();
bool initialize(const QStringList &arguments, QString *errorString);
ShutdownFlag shutdown();
diff --git a/doc/pluginhowto/examples/menu/respondingtomenuitems/donothingplugin.cpp b/doc/pluginhowto/examples/menu/respondingtomenuitems/donothingplugin.cpp
index 77ea0367c4..75429c6be9 100644
--- a/doc/pluginhowto/examples/menu/respondingtomenuitems/donothingplugin.cpp
+++ b/doc/pluginhowto/examples/menu/respondingtomenuitems/donothingplugin.cpp
@@ -57,20 +57,15 @@ DoNothingPlugin::DoNothingPlugin()
// Do nothing
}
-DoNothingPlugin::~DoNothingPlugin()
-{
- // Do notning
-}
-
void DoNothingPlugin::extensionsInitialized()
{
// Do nothing
}
-bool DoNothingPlugin::initialize(const QStringList &args, QString *errMsg)
+bool DoNothingPlugin::initialize(const QStringList &args, QString *errorMessage)
{
Q_UNUSED(args);
- Q_UNUSED(errMsg);
+ Q_UNUSED(errorMessage);
// Fetch the action manager
Core::ActionManager *am = Core::ICore::instance()->actionManager();
@@ -78,11 +73,11 @@ bool DoNothingPlugin::initialize(const QStringList &args, QString *errMsg)
// Create a command for "DoNothing".
QAction *action = new QAction(tr("DoNothing"),this);
Core::Command *cmd = am->registerAction(action,
- QLatin1String("DoNothingPlugin.DoNothing"),
- Core::Context(Core::Constants::C_GLOBAL));
+ "DoNothingPlugin.DoNothing", Core::Context(Core::Constants::C_GLOBAL));
// Add the "DoNothing" action to the tools menu
- am->actionContainer(Core::Constants::M_TOOLS)->addAction(cmd, Core::Constants::G_DEFAULT_THREE);
+ am->actionContainer(Core::Constants::M_TOOLS)
+ ->addAction(cmd, Core::Constants::G_DEFAULT_THREE);
// Connect the action
connect(action, SIGNAL(triggered(bool)), this, SLOT(performAction()));
diff --git a/doc/pluginhowto/examples/menu/respondingtomenuitems/donothingplugin.h b/doc/pluginhowto/examples/menu/respondingtomenuitems/donothingplugin.h
index 0c8944d674..03aeb75def 100644
--- a/doc/pluginhowto/examples/menu/respondingtomenuitems/donothingplugin.h
+++ b/doc/pluginhowto/examples/menu/respondingtomenuitems/donothingplugin.h
@@ -47,7 +47,7 @@ class DoNothingPlugin : public ExtensionSystem::IPlugin
public:
DoNothingPlugin();
- ~DoNothingPlugin();
+
void extensionsInitialized();
bool initialize(const QStringList &arguments, QString *errorString);
ShutdownFlag shutdown();