summaryrefslogtreecommitdiff
path: root/src/plugins/helloworld
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2011-04-13 16:09:04 +0200
committerhjk <qtc-committer@nokia.com>2011-04-14 11:15:08 +0200
commitbe9455bc507a4cd566d296c96407a89adc1bd1c2 (patch)
treee2d8755dc2f4281c848fcb82fe4c3e04c47f677a /src/plugins/helloworld
parent5b7b39cbda874058363e754228f4b3bda06e2543 (diff)
downloadqt-creator-be9455bc507a4cd566d296c96407a89adc1bd1c2.tar.gz
mode: make displayname, icon, priority, id, type data members
Diffstat (limited to 'src/plugins/helloworld')
-rw-r--r--src/plugins/helloworld/helloworldplugin.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/plugins/helloworld/helloworldplugin.cpp b/src/plugins/helloworld/helloworldplugin.cpp
index 23f09f2f71..b34abf1e46 100644
--- a/src/plugins/helloworld/helloworldplugin.cpp
+++ b/src/plugins/helloworld/helloworldplugin.cpp
@@ -60,14 +60,13 @@ public:
{
setWidget(new QPushButton(tr("Hello World PushButton!")));
setContext(Core::Context("HelloWorld.MainView"));
+ setDisplayName(tr("Hello world!"));
+ setIcon(QIcon());
+ setPriority(0);
+ setId(QLatin1String("HelloWorld.HelloWorldMode"));
+ setType(QLatin1String("HelloWorld.HelloWorldMode"));
+ setContextHelpId(QString());
}
-
- QString displayName() const { return tr("Hello world!"); }
- QIcon icon() const { return QIcon(); }
- int priority() const { return 0; }
- QString id() const { return QLatin1String("HelloWorld.HelloWorldMode"); }
- QString type() const { return QLatin1String("HelloWorld.HelloWorldMode"); }
- QString contextHelpId() const { return QString(); }
};