aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/customitems/painteditem
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/customitems/painteditem
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/customitems/painteditem')
-rw-r--r--examples/quick/customitems/painteditem/painteditem.pro6
-rw-r--r--examples/quick/customitems/painteditem/painteditem.qrc6
2 files changed, 9 insertions, 3 deletions
diff --git a/examples/quick/customitems/painteditem/painteditem.pro b/examples/quick/customitems/painteditem/painteditem.pro
index dfe6f96923..8f94a0cecd 100644
--- a/examples/quick/customitems/painteditem/painteditem.pro
+++ b/examples/quick/customitems/painteditem/painteditem.pro
@@ -9,12 +9,12 @@ HEADERS += TextBalloonPlugin/plugin.h \
SOURCES += textballoon.cpp
+RESOURCES += painteditem.qrc
+
DESTDIR = TextBalloonPlugin
target.path = $$[QT_INSTALL_EXAMPLES]/quick/customitems/painteditem/TextBalloonPlugin
qmldir.files = TextBalloonPlugin/qmldir
qmldir.path = $$[QT_INSTALL_EXAMPLES]/quick/customitems/painteditem/TextBalloonPlugin
-qml.files = textballoons.qml
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/customitems/painteditem/
-INSTALLS += qml qmldir target
+INSTALLS += qmldir target
diff --git a/examples/quick/customitems/painteditem/painteditem.qrc b/examples/quick/customitems/painteditem/painteditem.qrc
new file mode 100644
index 0000000000..c240be02a1
--- /dev/null
+++ b/examples/quick/customitems/painteditem/painteditem.qrc
@@ -0,0 +1,6 @@
+<RCC>
+ <qresource prefix="/painteditem">
+ <file>textballoon.h</file>
+ <file>textballoons.qml</file>
+ </qresource>
+</RCC>