diff options
author | Kai Koehne <kai.koehne@digia.com> | 2012-12-11 14:17:34 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-12 10:32:50 +0100 |
commit | a0fb0a5dd32b031f89abe603ed07a50c74327e37 (patch) | |
tree | 04dd8b801c1e5daca81701542a8f6815c8b35274 /examples/quick/positioners | |
parent | b570d384c0704ea12364e353493eeb6f1ae34cd3 (diff) |
Use resource files for most examples
Make examples shadow-build-friendly by using resource
files instead of trying to derive the qml path from
applicationDirPath().
Change-Id: I669424554c772d9b261249b366247190f5fbd8b1
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Diffstat (limited to 'examples/quick/positioners')
-rw-r--r-- | examples/quick/positioners/main.cpp | 2 | ||||
-rw-r--r-- | examples/quick/positioners/positioners.pro | 7 | ||||
-rw-r--r-- | examples/quick/positioners/positioners.qrc | 7 |
3 files changed, 12 insertions, 4 deletions
diff --git a/examples/quick/positioners/main.cpp b/examples/quick/positioners/main.cpp index 4ee4c82c56..5554af68c6 100644 --- a/examples/quick/positioners/main.cpp +++ b/examples/quick/positioners/main.cpp @@ -38,4 +38,4 @@ ** ****************************************************************************/ #include "../shared/shared.h" -DECLARATIVE_EXAMPLE_MAIN(positioners) +DECLARATIVE_EXAMPLE_MAIN(positioners/positioners) diff --git a/examples/quick/positioners/positioners.pro b/examples/quick/positioners/positioners.pro index 1a7622d0bc..a754d2a29a 100644 --- a/examples/quick/positioners/positioners.pro +++ b/examples/quick/positioners/positioners.pro @@ -2,8 +2,9 @@ TEMPLATE = app QT += quick qml SOURCES += main.cpp +RESOURCES += \ + positioners.qrc \ + ../shared/shared.qrc target.path = $$[QT_INSTALL_EXAMPLES]/quick/positioners -qml.files = positioners.qml positioners-transitions.qml positioners-attachedproperties.qml -qml.path = $$[QT_INSTALL_EXAMPLES]/quick/positioners -INSTALLS += target qml +INSTALLS += target diff --git a/examples/quick/positioners/positioners.qrc b/examples/quick/positioners/positioners.qrc new file mode 100644 index 0000000000..7025a6f8d8 --- /dev/null +++ b/examples/quick/positioners/positioners.qrc @@ -0,0 +1,7 @@ +<RCC> + <qresource prefix="/positioners"> + <file>positioners.qml</file> + <file>positioners-attachedproperties.qml</file> + <file>positioners-transitions.qml</file> + </qresource> +</RCC> |