From 6da4dd49f722861b8ce5c1e48d5ee5778bd8ca4a Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Mon, 2 Jan 2012 15:20:24 +0100 Subject: Examples: Hard-code the 'main' file in .qmlproject Set the 'mainFile:' property in .qmlproject files where it makes sense (i.e. there's one natural candidate). This makes sure Qt Creator doesn't fall back to 'current file in editor' as main file, which is unexpected to a lot of people. (This requires Qt Creator version 2.2 and newer). Change-Id: Ia5d20b0d982038520d7892bca155267c5f13644b Reviewed-by: Martin Jones --- .../declarative/particles/plasmapatrol/PlasmaPatrol.qmlproject | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'examples/declarative/particles') diff --git a/examples/declarative/particles/plasmapatrol/PlasmaPatrol.qmlproject b/examples/declarative/particles/plasmapatrol/PlasmaPatrol.qmlproject index 53f5ecb8d2..abb13c2509 100644 --- a/examples/declarative/particles/plasmapatrol/PlasmaPatrol.qmlproject +++ b/examples/declarative/particles/plasmapatrol/PlasmaPatrol.qmlproject @@ -1,8 +1,10 @@ /* File generated by QtCreator */ -import QmlProject 1.0 +import QmlProject 1.1 Project { + mainFile: "plasmapatrol.qml" + /* Include .qml, .js, and image files from current directory and subdirectories */ QmlFiles { directory: "." @@ -13,6 +15,10 @@ Project { ImageFiles { directory: "." } + Files { + paths: ["TODO"] + } + /* List of plugin directories passed to QML runtime */ // importPaths: [ "../exampleplugin" ] } -- cgit v1.2.3