summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dynamic/qml/PaletteItem.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/dynamic/qml/PaletteItem.qml')
-rw-r--r--examples/declarative/dynamic/qml/PaletteItem.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/declarative/dynamic/qml/PaletteItem.qml b/examples/declarative/dynamic/qml/PaletteItem.qml
new file mode 100644
index 0000000..e8f2ed4
--- /dev/null
+++ b/examples/declarative/dynamic/qml/PaletteItem.qml
@@ -0,0 +1,13 @@
+import Qt 4.7
+import "itemCreation.js" as Code
+
+GenericItem {
+ id: itemButton
+ property string file
+ MouseArea {
+ anchors.fill: parent;
+ onPressed: Code.startDrag(mouse);
+ onPositionChanged: Code.moveDrag(mouse);
+ onReleased: Code.endDrag(mouse);
+ }
+}