summaryrefslogtreecommitdiff
path: root/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-09-30 15:17:51 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-09-30 15:17:58 +0200
commita02d60bb1dcd868a7861fc4884adf6ac788b5a55 (patch)
treea076ed1c81b382b5473357fe89deaec3c49838fd /src/plugins/qt4projectmanager/wizards/guiappwizard.cpp
parent2a750aa3980b7d09ad1e3bc90ceea1cc08781f5e (diff)
downloadqt-creator-a02d60bb1dcd868a7861fc4884adf6ac788b5a55.tar.gz
Gui app wizard: Open form source instead of Qt Designer form.
Reviewed-by: hjk
Diffstat (limited to 'src/plugins/qt4projectmanager/wizards/guiappwizard.cpp')
-rw-r--r--src/plugins/qt4projectmanager/wizards/guiappwizard.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp b/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp
index 24e6344498..3c8bd3691a 100644
--- a/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp
+++ b/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp
@@ -172,13 +172,13 @@ Core::GeneratedFiles GuiAppWizard::generateFiles(const QWizard *w,
const QString formHeaderName = buildFileName(projectPath, params.headerFileName, headerSuffix());
Core::GeneratedFile formSource(formSourceFileName);
Core::GeneratedFile formHeader(formHeaderName);
+ formSource.setAttributes(Core::GeneratedFile::OpenEditorAttribute);
QSharedPointer<Core::GeneratedFile> form;
if (params.designerForm) {
// Create files: form
const QString formName = buildFileName(projectPath, params.formFileName, formSuffix());
form = QSharedPointer<Core::GeneratedFile>(new Core::GeneratedFile(formName));
- form->setAttributes(Core::GeneratedFile::OpenEditorAttribute);
if (!parametrizeTemplate(templatePath, QLatin1String("widget.ui"), params, &contents, errorMessage))
return Core::GeneratedFiles();
form->setContents(contents);
@@ -190,7 +190,6 @@ Core::GeneratedFiles GuiAppWizard::generateFiles(const QWizard *w,
return Core::GeneratedFiles();
formSource.setContents(CppTools::AbstractEditorSupport::licenseTemplate(formSourceFileName)
+ contents);
- formSource.setAttributes(Core::GeneratedFile::OpenEditorAttribute);
// Create files: form header
const QString formHeaderTemplate = QLatin1String("mywidget.h");
if (!parametrizeTemplate(templatePath, formHeaderTemplate, params, &contents, errorMessage))