Moved the custom widget wizard templates into Qt Creators template dir.

Cannot put a source file template into a resource in a source directory
as Visual Studio will grab and build it.
This commit is contained in:
Friedemann Kleint
2009-06-30 17:11:35 +02:00
parent 3264878fe6
commit 02de790714
15 changed files with 14 additions and 25 deletions

View File

@@ -65,6 +65,8 @@ Core::GeneratedFiles CustomWidgetWizard::generateFiles(const QWizard *w,
p.name = cw->name();
p.path = cw->path();
p.license = CppTools::AbstractEditorSupport::licenseTemplate();
p.templatePath = QtWizard::templateDir();
p.templatePath += QLatin1String("/customwidgetwizard");
return PluginGenerator::generatePlugin(p, *(cw->pluginOptions()), errorMessage);
}