aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/text
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/text')
-rw-r--r--examples/quick/text/main.cpp2
-rw-r--r--examples/quick/text/text.pro7
-rw-r--r--examples/quick/text/text.qrc24
3 files changed, 29 insertions, 4 deletions
diff --git a/examples/quick/text/main.cpp b/examples/quick/text/main.cpp
index 9b3c62657b..b8f927d81e 100644
--- a/examples/quick/text/main.cpp
+++ b/examples/quick/text/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(text)
+DECLARATIVE_EXAMPLE_MAIN(text/text)
diff --git a/examples/quick/text/text.pro b/examples/quick/text/text.pro
index 2f78548d05..733a99367b 100644
--- a/examples/quick/text/text.pro
+++ b/examples/quick/text/text.pro
@@ -2,8 +2,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ text.qrc \
+ ../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/text
-qml.files = fonts imgtag styledtext-layout.qml text.qml textselection
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/text
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/text/text.qrc b/examples/quick/text/text.qrc
new file mode 100644
index 0000000000..f0d21627ad
--- /dev/null
+++ b/examples/quick/text/text.qrc
@@ -0,0 +1,24 @@
+<RCC>
+ <qresource prefix="/text">
+ <file>text.qml</file>
+ <file>fonts/availableFonts.qml</file>
+ <file>fonts/banner.qml</file>
+ <file>fonts/fonts.qml</file>
+ <file>fonts/hello.qml</file>
+ <file>fonts/content/fonts/tarzeau_ocr_a.ttf</file>
+ <file>imgtag/imgtag.qml</file>
+ <file>imgtag/images/face-sad.png</file>
+ <file>imgtag/images/face-smile-big.png</file>
+ <file>imgtag/images/face-smile.png</file>
+ <file>imgtag/images/heart200.png</file>
+ <file>imgtag/images/qtlogo.png</file>
+ <file>imgtag/images/starfish_2.png</file>
+ <file>textselection/textselection.qml</file>
+ <file>textselection/pics/endHandle.png</file>
+ <file>textselection/pics/endHandle.sci</file>
+ <file>textselection/pics/startHandle.png</file>
+ <file>textselection/pics/startHandle.sci</file>
+ <file>styledtext-layout.qml</file>
+ <file>imgtag/TextWithImage.qml</file>
+ </qresource>
+</RCC>