Commit 111b89d7 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

QML: Name wizards correctly.


Reviewed-by: default avatarCarsten Owerfeldt <carsten.owerfeldt@nokia.com>
Initial-patch-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
parent 5841b6ac
...@@ -36,11 +36,11 @@ leave room for the Qt 4 target page. ...@@ -36,11 +36,11 @@ leave room for the Qt 4 target page.
--> -->
<wizard version="1" kind="project" <wizard version="1" kind="project"
class="qt4project" firstpage="10" class="qt4project" firstpage="10"
id="QmlRuntimePlugin" category="F.Projects"> id="QmlExtensionPlugin" category="F.Projects">
<icon>lib.png</icon> <icon>lib.png</icon>
<description>Creates a C++ plugin to extend the funtionality of the QML runtime.</description> <description>Creates a C++ plugin that makes it possible to offer extensions that can be loaded dynamically into applications using the QDeclarativeEngine class.</description>
<displayname>QML Runtime Plug-in</displayname> <displayname>Custom QML Extension Plugin</displayname>
<displaycategory>QML Runtime Plug-in</displaycategory> <displaycategory>QML Extension Plugin</displaycategory>
<files> <files>
<file source="qmldir" target="qmldir"/> <file source="qmldir" target="qmldir"/>
<file source="plugin.h" target="%ProjectName%.h"/> <file source="plugin.h" target="%ProjectName%.h"/>
...@@ -50,7 +50,7 @@ leave room for the Qt 4 target page. ...@@ -50,7 +50,7 @@ leave room for the Qt 4 target page.
<file source="project.pro" target="%ProjectName%.pro" openproject="true"/> <file source="project.pro" target="%ProjectName%.pro" openproject="true"/>
</files> </files>
<!-- Create a 2nd wizard page with parameters --> <!-- Create a 2nd wizard page with parameters -->
<fieldpagetitle>QML Runtime Plug-in Parameters</fieldpagetitle> <fieldpagetitle>Custom QML Extension Plugin Parameters</fieldpagetitle>
<fields> <fields>
<field mandatory="false" name="ObjectName"> <field mandatory="false" name="ObjectName">
<fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9_]+$' defaulttext="ExampleObject"/> <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9_]+$' defaulttext="ExampleObject"/>
......
...@@ -69,10 +69,10 @@ Core::BaseFileWizardParameters QmlProjectApplicationWizard::parameters() ...@@ -69,10 +69,10 @@ Core::BaseFileWizardParameters QmlProjectApplicationWizard::parameters()
p.drawPixmap(3, 3, 16, 16, QPixmap(QLatin1String(Constants::QML_WIZARD_ICON))); p.drawPixmap(3, 3, 16, 16, QPixmap(QLatin1String(Constants::QML_WIZARD_ICON)));
parameters.setIcon(icon); parameters.setIcon(icon);
} }
parameters.setDisplayName(tr("Qt QML Application")); parameters.setDisplayName(tr("QML Application"));
parameters.setId(QLatin1String("QA.QML Application")); parameters.setId(QLatin1String("QA.QML Application"));
parameters.setDescription(tr("Creates a Qt QML application project with a single QML file containing the main view.\n\n" parameters.setDescription(tr("Creates a QML application project with a single QML file containing the main view.\n\n"
"QML application projects are executed through the QML runtime and do not need to be built.")); "QML application projects are executed by the Qt QML Viewer and do not need to be built."));
parameters.setCategory(QLatin1String(Constants::QML_WIZARD_CATEGORY)); parameters.setCategory(QLatin1String(Constants::QML_WIZARD_CATEGORY));
parameters.setDisplayCategory(QCoreApplication::translate(Constants::QML_WIZARD_TR_SCOPE, parameters.setDisplayCategory(QCoreApplication::translate(Constants::QML_WIZARD_TR_SCOPE,
Constants::QML_WIZARD_TR_CATEGORY)); Constants::QML_WIZARD_TR_CATEGORY));
......
...@@ -61,7 +61,7 @@ namespace Internal { ...@@ -61,7 +61,7 @@ namespace Internal {
QmlProjectImportWizardDialog::QmlProjectImportWizardDialog(QWidget *parent) QmlProjectImportWizardDialog::QmlProjectImportWizardDialog(QWidget *parent)
: Utils::Wizard(parent) : Utils::Wizard(parent)
{ {
setWindowTitle(tr("Import Existing Qt QML Directory")); setWindowTitle(tr("Import Existing QML Directory"));
// first page // first page
m_firstPage = new FileWizardPage; m_firstPage = new FileWizardPage;
...@@ -113,7 +113,7 @@ Core::BaseFileWizardParameters QmlProjectImportWizard::parameters() ...@@ -113,7 +113,7 @@ Core::BaseFileWizardParameters QmlProjectImportWizard::parameters()
p.drawPixmap(3, 3, 16, 16, qApp->style()->standardIcon(QStyle::SP_DirIcon).pixmap(16)); p.drawPixmap(3, 3, 16, 16, qApp->style()->standardIcon(QStyle::SP_DirIcon).pixmap(16));
parameters.setIcon(icon); parameters.setIcon(icon);
} }
parameters.setDisplayName(tr("Import Existing Qt QML Directory")); parameters.setDisplayName(tr("Import Existing QML Directory"));
parameters.setId(QLatin1String("QI.QML Import")); parameters.setId(QLatin1String("QI.QML Import"));
parameters.setDescription(tr("Creates a QML project from an existing directory of QML files.")); parameters.setDescription(tr("Creates a QML project from an existing directory of QML files."));
parameters.setCategory(QLatin1String(Constants::QML_WIZARD_CATEGORY)); parameters.setCategory(QLatin1String(Constants::QML_WIZARD_CATEGORY));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment