Add support for JavaScriptFiles and ImageFiles elements to .qmlproject

This commit is contained in:
Kai Koehne
2010-01-29 10:36:00 +01:00
parent 269506c99c
commit bafe4468aa
6 changed files with 42 additions and 9 deletions

View File

@@ -127,11 +127,23 @@ Core::GeneratedFiles QmlNewProjectWizard::generateFiles(const QWizard *w,
QTextStream out(&projectContents);
out
//: Comment added to generated .qmlproject file
<< "// " << tr("File generated by QtCreator", "qmlproject Template") << endl
<< endl
<< "import QmlProject 1.0" << endl
<< endl
<< "Project {" << endl
//: Comment added to generated .qmlproject file
<< " // " << tr("Scan current directory for .qml, .js, and image files", "qmlproject Template") << endl
<< " QmlFiles {" << endl
<< " directory: \".\"" << endl
<< " }" << endl
<< " JavaScriptFiles {" << endl
<< " directory: \".\"" << endl
<< " }" << endl
<< " ImageFiles {" << endl
<< " directory: \".\"" << endl
<< " }" << endl
<< "}" << endl;
}
Core::GeneratedFile generatedCreatorFile(creatorFileName);