forked from qt-creator/qt-creator
QML file wizard: Move to new category.
Task-number: QTCREATORBUG-2510 Reviewed-by: Kai Koehne
This commit is contained in:
@@ -58,6 +58,10 @@ const char * const JS_MIMETYPE = "application/javascript";
|
|||||||
|
|
||||||
const char *const TASK_CATEGORY_QML = "Task.Category.Qml";
|
const char *const TASK_CATEGORY_QML = "Task.Category.Qml";
|
||||||
|
|
||||||
|
const char * const WIZARD_CATEGORY_QML = "S.Qml";
|
||||||
|
const char * const WIZARD_TR_CATEGORY_QML = QT_TRANSLATE_NOOP("QmlJsEditor", "QML");
|
||||||
|
|
||||||
|
|
||||||
} // namespace Constants
|
} // namespace Constants
|
||||||
} // namespace QmlJSEditor
|
} // namespace QmlJSEditor
|
||||||
|
|
||||||
|
|||||||
@@ -134,10 +134,10 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e
|
|||||||
addObject(m_editor);
|
addObject(m_editor);
|
||||||
|
|
||||||
Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard);
|
Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard);
|
||||||
wizardParameters.setCategory(QLatin1String(Core::Constants::WIZARD_CATEGORY_QT));
|
wizardParameters.setCategory(QLatin1String(Constants::WIZARD_CATEGORY_QML));
|
||||||
wizardParameters.setDisplayCategory(QCoreApplication::translate("Core", Core::Constants::WIZARD_TR_CATEGORY_QT));
|
wizardParameters.setDisplayCategory(QCoreApplication::translate("QmlJsEditor", Constants::WIZARD_TR_CATEGORY_QML));
|
||||||
wizardParameters.setDescription(tr("Creates a Qt QML file."));
|
wizardParameters.setDescription(tr("Creates a QML file."));
|
||||||
wizardParameters.setDisplayName(tr("Qt QML File"));
|
wizardParameters.setDisplayName(tr("QML File"));
|
||||||
wizardParameters.setId(QLatin1String("Q.Qml"));
|
wizardParameters.setId(QLatin1String("Q.Qml"));
|
||||||
addAutoReleasedObject(new QmlFileWizard(wizardParameters, core));
|
addAutoReleasedObject(new QmlFileWizard(wizardParameters, core));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user