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/localstorage/localstorage/localstorage.pro | 7 ++++--- examples/quick/localstorage/localstorage/localstorage.qrc | 6 ++++++ examples/quick/localstorage/localstorage/main.cpp | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 examples/quick/localstorage/localstorage/localstorage.qrc (limited to 'examples/quick/localstorage') diff --git a/examples/quick/localstorage/localstorage/localstorage.pro b/examples/quick/localstorage/localstorage/localstorage.pro index ef90b63546..80c306fcc2 100644 --- a/examples/quick/localstorage/localstorage/localstorage.pro +++ b/examples/quick/localstorage/localstorage/localstorage.pro @@ -2,8 +2,9 @@ TEMPLATE = app QT += quick qml SOURCES += main.cpp +RESOURCES += \ + localstorage.qrc \ + ../../shared/shared.qrc target.path = $$[QT_INSTALL_EXAMPLES]/quick/localstorage/localstorage -qml.files = localstorage.qml hello.qml -qml.path = $$[QT_INSTALL_EXAMPLES]/quick/localstorage/localstorage -INSTALLS += target qml +INSTALLS += target diff --git a/examples/quick/localstorage/localstorage/localstorage.qrc b/examples/quick/localstorage/localstorage/localstorage.qrc new file mode 100644 index 0000000000..09ac2de033 --- /dev/null +++ b/examples/quick/localstorage/localstorage/localstorage.qrc @@ -0,0 +1,6 @@ + + + hello.qml + localstorage.qml + + diff --git a/examples/quick/localstorage/localstorage/main.cpp b/examples/quick/localstorage/localstorage/main.cpp index 0f69fb7fdb..8433dbe55e 100644 --- a/examples/quick/localstorage/localstorage/main.cpp +++ b/examples/quick/localstorage/localstorage/main.cpp @@ -38,4 +38,4 @@ ** ****************************************************************************/ #include "../../shared/shared.h" -DECLARATIVE_EXAMPLE_MAIN(localstorage) +DECLARATIVE_EXAMPLE_MAIN(localstorage/localstorage/localstorage) -- cgit v1.2.3