diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 6236115e0458a536015cd16bbf74504782f3fae8..8de8a0983f220f85b6bef808c7a676b9c35d87a1 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -958,7 +958,8 @@ template <class EditorFactoryLike> inline EditorFactoryLike *findByKind(ExtensionSystem::PluginManager *pm, const QString &kind) { - foreach(EditorFactoryLike *efl, pm->template getObjects<EditorFactoryLike>()) + const QList<EditorFactoryLike *> factories = pm->template getObjects<EditorFactoryLike>(); + foreach(EditorFactoryLike *efl, factories) if (kind == efl->kind()) return efl; return 0; diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index a334518f3ff494833af7a94d5956a69dd9a9450b..a13d965d1a69a2b9f9f6dbbc1960f15cabad9459 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -760,7 +760,7 @@ void MainWindow::registerDefaultActions() void MainWindow::newFile() { - showNewItemDialog(tr("New", "Title of dialog"), IWizard::allWizards()); + showNewItemDialog(tr("New...", "Title of dialog"), IWizard::allWizards()); } void MainWindow::openFile() diff --git a/src/plugins/cppeditor/cppplugin.cpp b/src/plugins/cppeditor/cppplugin.cpp index 9e17083c2190fba27b2e796a25074c5a35f48034..318f3f0b51a3053ed2ba21182393fccd3a185cd0 100644 --- a/src/plugins/cppeditor/cppplugin.cpp +++ b/src/plugins/cppeditor/cppplugin.cpp @@ -165,11 +165,11 @@ bool CppPlugin::initialize(const QStringList & /*arguments*/, QString *errorMess wizardParameters.setCategory(QLatin1String("C++")); wizardParameters.setTrCategory(tr("C++")); - wizardParameters.setDescription(tr("Creates a new C++ header file.")); + wizardParameters.setDescription(tr("Creates a C++ header file.")); wizardParameters.setName(tr("C++ Header File")); addAutoReleasedObject(new CppFileWizard(wizardParameters, Header, core)); - wizardParameters.setDescription(tr("Creates a new C++ source file.")); + wizardParameters.setDescription(tr("Creates a C++ source file.")); wizardParameters.setName(tr("C++ Source File")); addAutoReleasedObject(new CppFileWizard(wizardParameters, Source, core)); diff --git a/src/plugins/designer/formeditorplugin.cpp b/src/plugins/designer/formeditorplugin.cpp index 39b1e17775b74561a41411f00d9ea9d5b500372b..8962f2f714abfea35cfd88f86c1afb2609621989 100644 --- a/src/plugins/designer/formeditorplugin.cpp +++ b/src/plugins/designer/formeditorplugin.cpp @@ -148,14 +148,14 @@ bool FormEditorPlugin::initializeTemplates(QString *error) wizardParameters.setTrCategory(tr("Qt")); const QString formFileType = QLatin1String(Constants::FORM_FILE_TYPE); wizardParameters.setName(tr("Qt Designer Form")); - wizardParameters.setDescription(tr("This creates a new Qt Designer form file.")); + wizardParameters.setDescription(tr("Creates a Qt Designer form file (.ui).")); m_formWizard = new FormWizard(wizardParameters, this); addObject(m_formWizard); #ifdef CPP_ENABLED wizardParameters.setKind(Core::IWizard::ClassWizard); wizardParameters.setName(tr("Qt Designer Form Class")); - wizardParameters.setDescription(tr("This creates a new Qt Designer form class.")); + wizardParameters.setDescription(tr("Creates a Qt Designer form file (.ui) with a matching class.")); m_formClassWizard = new FormClassWizard(wizardParameters, this); addObject(m_formClassWizard); #endif diff --git a/src/plugins/duieditor/duieditorplugin.cpp b/src/plugins/duieditor/duieditorplugin.cpp index 09898aaaf7df204a59a8cf01b586b6d9a72f869a..45216ebe846eb4f51d7fc583fe96ad211d4bbafa 100644 --- a/src/plugins/duieditor/duieditorplugin.cpp +++ b/src/plugins/duieditor/duieditorplugin.cpp @@ -95,7 +95,7 @@ bool DuiEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err addObject(m_editor); Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard); - wizardParameters.setDescription(tr("Qt QML File")); + wizardParameters.setDescription(tr("Creates a Qt QML file.")); wizardParameters.setName(tr("Qt QML File")); wizardParameters.setCategory(QLatin1String("Qt")); wizardParameters.setTrCategory(tr("Qt")); diff --git a/src/plugins/qtscripteditor/qtscripteditorplugin.cpp b/src/plugins/qtscripteditor/qtscripteditorplugin.cpp index eadf2711ea8c691abc5138d79318e1e223c30b96..c37e1a5ec018ae842c1f698b2bb7f0807b15ca42 100644 --- a/src/plugins/qtscripteditor/qtscripteditorplugin.cpp +++ b/src/plugins/qtscripteditor/qtscripteditorplugin.cpp @@ -94,7 +94,7 @@ bool QtScriptEditorPlugin::initialize(const QStringList & /*arguments*/, QString addObject(m_editor); Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard); - wizardParameters.setDescription(tr("Qt Script file")); + wizardParameters.setDescription(tr("Creates a Qt Script file.")); wizardParameters.setName(tr("Qt Script file")); wizardParameters.setCategory(QLatin1String("Qt")); wizardParameters.setTrCategory(tr("Qt")); diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp index bb04c71cda218d38ecf4bbf0452a534659633023..826553f2d532868bc0fd388a7dc1d61d11e35dfa 100644 --- a/src/plugins/resourceeditor/resourceeditorplugin.cpp +++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp @@ -74,8 +74,8 @@ bool ResourceEditorPlugin::initialize(const QStringList &arguments, QString *err addObject(m_editor); Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard); - wizardParameters.setDescription(tr("Resource file")); - wizardParameters.setName(tr("Resource file")); + wizardParameters.setDescription(tr("Create a Qt Resource file (.qrc).")); + wizardParameters.setName(tr("Qt Resource file")); wizardParameters.setCategory(QLatin1String("Qt")); wizardParameters.setTrCategory(tr("Qt")); diff --git a/src/plugins/texteditor/texteditorplugin.cpp b/src/plugins/texteditor/texteditorplugin.cpp index d1e4ce5c8fd4546a2294f63992b43e6ad5ffd55e..0eab66e3008bb77e0a938222975a68ce2101bf1f 100644 --- a/src/plugins/texteditor/texteditorplugin.cpp +++ b/src/plugins/texteditor/texteditorplugin.cpp @@ -90,7 +90,7 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe return false; Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard); - wizardParameters.setDescription(tr("This creates a new text file (.txt)")); + wizardParameters.setDescription(tr("Creates a text file (.txt).")); wizardParameters.setName(tr("Text File")); wizardParameters.setCategory(QLatin1String("General")); wizardParameters.setTrCategory(tr("General"));