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/demos/stocqt | |
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/demos/stocqt')
-rw-r--r-- | examples/quick/demos/stocqt/main.cpp | 2 | ||||
-rw-r--r-- | examples/quick/demos/stocqt/stocqt.pro | 5 | ||||
-rw-r--r-- | examples/quick/demos/stocqt/stocqt.qrc | 21 |
3 files changed, 24 insertions, 4 deletions
diff --git a/examples/quick/demos/stocqt/main.cpp b/examples/quick/demos/stocqt/main.cpp index 779d204a24..d893aa5a04 100644 --- a/examples/quick/demos/stocqt/main.cpp +++ b/examples/quick/demos/stocqt/main.cpp @@ -38,4 +38,4 @@ ** ****************************************************************************/ #include "../../shared/shared.h" -DECLARATIVE_EXAMPLE_MAIN(stocqt) +DECLARATIVE_EXAMPLE_MAIN(demos/stocqt/stocqt) diff --git a/examples/quick/demos/stocqt/stocqt.pro b/examples/quick/demos/stocqt/stocqt.pro index f33c4aee01..efe37cb722 100644 --- a/examples/quick/demos/stocqt/stocqt.pro +++ b/examples/quick/demos/stocqt/stocqt.pro @@ -2,8 +2,7 @@ TEMPLATE = app QT += qml quick SOURCES += main.cpp +RESOURCES += stocqt.qrc target.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/stocqt -qml.files = stocqt.qml content -qml.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/stocqt -INSTALLS += target qml +INSTALLS += target diff --git a/examples/quick/demos/stocqt/stocqt.qrc b/examples/quick/demos/stocqt/stocqt.qrc new file mode 100644 index 0000000000..b2b1acaf04 --- /dev/null +++ b/examples/quick/demos/stocqt/stocqt.qrc @@ -0,0 +1,21 @@ +<RCC> + <qresource prefix="/demos/stocqt"> + <file>stocqt.qml</file> + <file>content/Button.qml</file> + <file>content/DatePicker.qml</file> + <file>content/StockChart.qml</file> + <file>content/StockListModel.qml</file> + <file>content/StockListView.qml</file> + <file>content/StockModel.qml</file> + <file>content/StockSettings.qml</file> + <file>content/StockView.qml</file> + <file>content/images/icon-calendar-anim.png</file> + <file>content/images/icon-calendar.png</file> + <file>content/images/icon-items.png</file> + <file>content/images/icon-settings.png</file> + <file>content/images/logo.png</file> + <file>content/images/stock-selected.png</file> + <file>content/images/wheel-touch.png</file> + <file>content/images/wheel.png</file> + </qresource> +</RCC> |