From a0fb0a5dd32b031f89abe603ed07a50c74327e37 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 11 Dec 2012 14:17:34 +0100 Subject: 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 --- examples/quick/keyinteraction/keyinteraction.pro | 5 ++--- examples/quick/keyinteraction/keyinteraction.qrc | 12 ++++++++++++ examples/quick/keyinteraction/main.cpp | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 examples/quick/keyinteraction/keyinteraction.qrc (limited to 'examples/quick/keyinteraction') 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 @@ + + + keyinteraction.qml + focus/focus.qml + focus/Core/images/arrow.png + focus/Core/images/qt-logo.png + focus/Core/ContextMenu.qml + focus/Core/GridMenu.qml + focus/Core/ListMenu.qml + focus/Core/ListViewDelegate.qml + + 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) -- cgit v1.2.3