aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/keyinteraction
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2012-12-11 14:17:34 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-12 10:32:50 +0100
commita0fb0a5dd32b031f89abe603ed07a50c74327e37 (patch)
tree04dd8b801c1e5daca81701542a8f6815c8b35274 /examples/quick/keyinteraction
parentb570d384c0704ea12364e353493eeb6f1ae34cd3 (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/keyinteraction')
-rw-r--r--examples/quick/keyinteraction/keyinteraction.pro5
-rw-r--r--examples/quick/keyinteraction/keyinteraction.qrc12
-rw-r--r--examples/quick/keyinteraction/main.cpp2
3 files changed, 15 insertions, 4 deletions
diff --git a/examples/quick/keyinteraction/keyinteraction.pro b/examples/quick/keyinteraction/keyinteraction.pro
index a0c65be2d1..edc157f028 100644
--- a/examples/quick/keyinteraction/keyinteraction.pro
+++ b/examples/quick/keyinteraction/keyinteraction.pro
@@ -2,8 +2,7 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += keyinteraction.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/keyinteraction
-qml.files = keyinteraction.qml focus
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/keyinteraction
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/keyinteraction/keyinteraction.qrc b/examples/quick/keyinteraction/keyinteraction.qrc
new file mode 100644
index 0000000000..21bde4472c
--- /dev/null
+++ b/examples/quick/keyinteraction/keyinteraction.qrc
@@ -0,0 +1,12 @@
+<RCC>
+ <qresource prefix="/keyinteraction">
+ <file>keyinteraction.qml</file>
+ <file>focus/focus.qml</file>
+ <file>focus/Core/images/arrow.png</file>
+ <file>focus/Core/images/qt-logo.png</file>
+ <file>focus/Core/ContextMenu.qml</file>
+ <file>focus/Core/GridMenu.qml</file>
+ <file>focus/Core/ListMenu.qml</file>
+ <file>focus/Core/ListViewDelegate.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/keyinteraction/main.cpp b/examples/quick/keyinteraction/main.cpp
index e82e1d86cd..4f226e715a 100644
--- a/examples/quick/keyinteraction/main.cpp
+++ b/examples/quick/keyinteraction/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(keyinteraction)
+DECLARATIVE_EXAMPLE_MAIN(keyinteraction/keyinteraction)