diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2010-01-07 18:17:24 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2010-01-07 18:17:24 +0100 |
commit | a6ad773722a758df46813afd7af42625a0f3e276 (patch) | |
tree | 8a74e3bb0fe819603e3ce5ed867116e75acc8d64 /src/plugins/qtscripteditor/qtscripteditorplugin.cpp | |
parent | 8bb87fcda497d09ac3ba39b38b9c229d02022b09 (diff) | |
download | qt-creator-a6ad773722a758df46813afd7af42625a0f3e276.tar.gz |
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
Diffstat (limited to 'src/plugins/qtscripteditor/qtscripteditorplugin.cpp')
-rw-r--r-- | src/plugins/qtscripteditor/qtscripteditorplugin.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/qtscripteditor/qtscripteditorplugin.cpp b/src/plugins/qtscripteditor/qtscripteditorplugin.cpp index d17f981de7..fef32e79a1 100644 --- a/src/plugins/qtscripteditor/qtscripteditorplugin.cpp +++ b/src/plugins/qtscripteditor/qtscripteditorplugin.cpp @@ -85,11 +85,11 @@ bool QtScriptEditorPlugin::initialize(const QStringList & /*arguments*/, QString Core::ICore *core = Core::ICore::instance(); if (!core->mimeDatabase()->addMimeTypes(QLatin1String(":/qtscripteditor/QtScriptEditor.mimetypes.xml"), error_message)) return false; - m_scriptcontext << core->uniqueIDManager()->uniqueIdentifier(QtScriptEditor::Constants::C_QTSCRIPTEDITOR); + m_scriptcontext << core->uniqueIDManager()->uniqueIdentifier(QtScriptEditor::Constants::C_QTSCRIPTEDITOR_ID); m_context = m_scriptcontext; m_context << core->uniqueIDManager()->uniqueIdentifier(TextEditor::Constants::C_TEXTEDITOR); - m_actionHandler = new TextEditor::TextEditorActionHandler(QtScriptEditor::Constants::C_QTSCRIPTEDITOR, + m_actionHandler = new TextEditor::TextEditorActionHandler(QtScriptEditor::Constants::C_QTSCRIPTEDITOR_ID, TextEditor::TextEditorActionHandler::Format | TextEditor::TextEditorActionHandler::UnCommentSelection | TextEditor::TextEditorActionHandler::UnCollapseAll); @@ -101,12 +101,12 @@ bool QtScriptEditorPlugin::initialize(const QStringList & /*arguments*/, QString Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard); wizardParameters.setDescription(tr("Creates a Qt Script file.")); - wizardParameters.setName(tr("Qt Script file")); + wizardParameters.setDisplayName(tr("Qt Script file")); wizardParameters.setId(QLatin1String("Z.Script")); wizardParameters.setCategory(QLatin1String(Core::Constants::WIZARD_CATEGORY_QT)); - wizardParameters.setTrCategory(QCoreApplication::translate("Core", Core::Constants::WIZARD_TR_CATEGORY_QT)); + wizardParameters.setDisplayCategory(QCoreApplication::translate("Core", Core::Constants::WIZARD_TR_CATEGORY_QT)); m_wizard = new TextEditor::TextFileWizard(QLatin1String(QtScriptEditor::Constants::C_QTSCRIPTEDITOR_MIMETYPE), - QLatin1String(QtScriptEditor::Constants::C_QTSCRIPTEDITOR), + QLatin1String(QtScriptEditor::Constants::C_QTSCRIPTEDITOR_ID), QLatin1String("qtscript$"), wizardParameters, this); addObject(m_wizard); |