aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/draganddrop
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/draganddrop')
-rw-r--r--examples/quick/draganddrop/draganddrop.pro7
-rw-r--r--examples/quick/draganddrop/draganddrop.qrc9
-rw-r--r--examples/quick/draganddrop/main.cpp2
3 files changed, 14 insertions, 4 deletions
diff --git a/examples/quick/draganddrop/draganddrop.pro b/examples/quick/draganddrop/draganddrop.pro
index 451d03ad32..e62b936aa8 100644
--- a/examples/quick/draganddrop/draganddrop.pro
+++ b/examples/quick/draganddrop/draganddrop.pro
@@ -2,8 +2,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ draganddrop.qrc \
+ ../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/draganddrop
-qml.files = draganddrop.qml tiles views
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/draganddrop
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/draganddrop/draganddrop.qrc b/examples/quick/draganddrop/draganddrop.qrc
new file mode 100644
index 0000000000..6d064f7722
--- /dev/null
+++ b/examples/quick/draganddrop/draganddrop.qrc
@@ -0,0 +1,9 @@
+<RCC>
+ <qresource prefix="/draganddrop">
+ <file>draganddrop.qml</file>
+ <file>tiles/DragTile.qml</file>
+ <file>tiles/DropTile.qml</file>
+ <file>tiles/tiles.qml</file>
+ <file>views/gridview.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/draganddrop/main.cpp b/examples/quick/draganddrop/main.cpp
index 7a7adf2391..d9bf43695a 100644
--- a/examples/quick/draganddrop/main.cpp
+++ b/examples/quick/draganddrop/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(draganddrop)
+DECLARATIVE_EXAMPLE_MAIN(draganddrop/draganddrop)