Correct capitalization in wizard template and example.

Change-Id: I9a42ea97407179911d1736ba1ca79402d51d24c5
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
Niels Weber
2016-02-16 10:13:40 +01:00
parent c41abd2b54
commit 8ac1f8eb29
2 changed files with 4 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ bool ExamplePlugin::initialize(const QStringList &arguments, QString *errorStrin
Q_UNUSED(errorString) Q_UNUSED(errorString)
//! [add action] //! [add action]
QAction *action = new QAction(tr("Example action"), this); QAction *action = new QAction(tr("Example Action"), this);
Core::Command *cmd = Core::ActionManager::registerAction(action, Constants::ACTION_ID, Core::Command *cmd = Core::ActionManager::registerAction(action, Constants::ACTION_ID,
Core::Context(Core::Constants::C_GLOBAL)); Core::Context(Core::Constants::C_GLOBAL));
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Alt+Meta+A"))); cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Alt+Meta+A")));
@@ -76,7 +76,7 @@ ExtensionSystem::IPlugin::ShutdownFlag ExamplePlugin::aboutToShutdown()
void ExamplePlugin::triggerAction() void ExamplePlugin::triggerAction()
{ {
QMessageBox::information(Core::ICore::mainWindow(), QMessageBox::information(Core::ICore::mainWindow(),
tr("Action triggered"), tr("Action Triggered"),
tr("This is an action from Example.")); tr("This is an action from Example."));
} }
//! [slot implementation] //! [slot implementation]

View File

@@ -40,7 +40,7 @@ bool %PluginName%Plugin::initialize(const QStringList &arguments, QString *error
Q_UNUSED(arguments) Q_UNUSED(arguments)
Q_UNUSED(errorString) Q_UNUSED(errorString)
QAction *action = new QAction(tr("%PluginName% action"), this); QAction *action = new QAction(tr("%PluginName% Action"), this);
Core::Command *cmd = Core::ActionManager::registerAction(action, Constants::ACTION_ID, Core::Command *cmd = Core::ActionManager::registerAction(action, Constants::ACTION_ID,
Core::Context(Core::Constants::C_GLOBAL)); Core::Context(Core::Constants::C_GLOBAL));
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Alt+Meta+A"))); cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Alt+Meta+A")));
@@ -72,6 +72,6 @@ ExtensionSystem::IPlugin::ShutdownFlag %PluginName%Plugin::aboutToShutdown()
void %PluginName%Plugin::triggerAction() void %PluginName%Plugin::triggerAction()
{ {
QMessageBox::information(Core::ICore::mainWindow(), QMessageBox::information(Core::ICore::mainWindow(),
tr("Action triggered"), tr("Action Triggered"),
tr("This is an action from %PluginName%.")); tr("This is an action from %PluginName%."));
} }