QmlProject file format: Let filters recurse by default

E.g. "QmlFiles {}" now also monitors subdirectories by default, while
"QmlFiles { paths : ["bla.qml"] } does not.

Task-number: BAUHAUS-503
This commit is contained in:
Kai Koehne
2010-03-22 10:19:39 +01:00
parent 8540effe3a
commit 3984c057b8
5 changed files with 51 additions and 25 deletions

View File

@@ -127,13 +127,13 @@ Core::GeneratedFiles QmlProjectApplicationWizard::generateFiles(const QWizard *w
out
//: Comment added to generated .qmlproject file
<< "// " << tr("File generated by QtCreator", "qmlproject Template") << endl
<< "/* " << 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
<< " /* " << tr("Include .qml, .js, and image files from current directory and subdirectories", "qmlproject Template") << " */" << endl
<< " QmlFiles {" << endl
<< " directory: \".\"" << endl
<< " }" << endl
@@ -144,13 +144,11 @@ Core::GeneratedFiles QmlProjectApplicationWizard::generateFiles(const QWizard *w
<< " directory: \".\"" << endl
<< " }" << endl
//: Comment added to generated .qmlproject file
<< " // List of plugin directories passed to QML runtime" << endl
//: Comment added to generated .qmlproject file
<< " /* " << tr("List of plugin directories passed to QML runtime", "qmlproject Template") << " */" << endl
<< " // importPaths: [ \" ../exampleplugin \" ]" << endl
<< "}" << endl;
}
Core::GeneratedFile generatedCreatorFile(creatorFileName);
generatedCreatorFile.setContents(projectContents);
Core::GeneratedFiles files;