aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/righttoleft
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2012-01-02 15:20:24 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-03 10:33:01 +0100
commit6da4dd49f722861b8ce5c1e48d5ee5778bd8ca4a (patch)
treed88f115fd8c0da96c99d4ddd530b1e88ec971b55 /examples/declarative/righttoleft
parent742e9798decaa5e738b8bbfe73ad223dfa321597 (diff)
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 <martin.jones@nokia.com>
Diffstat (limited to 'examples/declarative/righttoleft')
-rw-r--r--examples/declarative/righttoleft/layoutdirection/layoutdirection.qmlproject4
-rw-r--r--examples/declarative/righttoleft/layoutmirroring/layoutmirroring.qmlproject4
-rw-r--r--examples/declarative/righttoleft/textalignment/textalignment.qmlproject4
3 files changed, 9 insertions, 3 deletions
diff --git a/examples/declarative/righttoleft/layoutdirection/layoutdirection.qmlproject b/examples/declarative/righttoleft/layoutdirection/layoutdirection.qmlproject
index e5262175c5..6ec3a3d79b 100644
--- a/examples/declarative/righttoleft/layoutdirection/layoutdirection.qmlproject
+++ b/examples/declarative/righttoleft/layoutdirection/layoutdirection.qmlproject
@@ -1,8 +1,10 @@
/* File generated by QtCreator */
-import QmlProject 1.0
+import QmlProject 1.1
Project {
+ mainFile: "layoutdirection.qml"
+
/* Include .qml, .js, and image files from current directory and subdirectories */
QmlFiles {
directory: "."
diff --git a/examples/declarative/righttoleft/layoutmirroring/layoutmirroring.qmlproject b/examples/declarative/righttoleft/layoutmirroring/layoutmirroring.qmlproject
index e5262175c5..7facd6495d 100644
--- a/examples/declarative/righttoleft/layoutmirroring/layoutmirroring.qmlproject
+++ b/examples/declarative/righttoleft/layoutmirroring/layoutmirroring.qmlproject
@@ -1,8 +1,10 @@
/* File generated by QtCreator */
-import QmlProject 1.0
+import QmlProject 1.1
Project {
+ mainFile: "layoutmirroring.qml"
+
/* Include .qml, .js, and image files from current directory and subdirectories */
QmlFiles {
directory: "."
diff --git a/examples/declarative/righttoleft/textalignment/textalignment.qmlproject b/examples/declarative/righttoleft/textalignment/textalignment.qmlproject
index e5262175c5..8bf2a5802d 100644
--- a/examples/declarative/righttoleft/textalignment/textalignment.qmlproject
+++ b/examples/declarative/righttoleft/textalignment/textalignment.qmlproject
@@ -1,8 +1,10 @@
/* File generated by QtCreator */
-import QmlProject 1.0
+import QmlProject 1.1
Project {
+ mainFile: "textalignment.qml"
+
/* Include .qml, .js, and image files from current directory and subdirectories */
QmlFiles {
directory: "."