From a6ad773722a758df46813afd7af42625a0f3e276 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 7 Jan 2010 18:17:24 +0100 Subject: Make method naming more consistent. * Use id() for methods returning a string used to represent some type of object. * Use displayName() for strings that are meant to be user visible. * Quieten some warnings while touching the files anyway. * Move Factories to their products in the plugins where that was not done before. Reviewed-by: dt --- src/plugins/helloworld/helloworldplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/helloworld/helloworldplugin.cpp') diff --git a/src/plugins/helloworld/helloworldplugin.cpp b/src/plugins/helloworld/helloworldplugin.cpp index f898651c1b..bbd4f574a8 100644 --- a/src/plugins/helloworld/helloworldplugin.cpp +++ b/src/plugins/helloworld/helloworldplugin.cpp @@ -109,7 +109,7 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *error_m // Add a mode with a push button based on BaseMode. Like the BaseView, // it will unregister itself from the plugin manager when it is deleted. Core::BaseMode *baseMode = new Core::BaseMode; - baseMode->setUniqueModeName("HelloWorld.HelloWorldMode"); + baseMode->setId(QLatin1String("HelloWorld.HelloWorldMode")); baseMode->setName(tr("Hello world!")); baseMode->setIcon(QIcon()); baseMode->setPriority(0); -- cgit v1.2.1