summaryrefslogtreecommitdiffstats
path: root/examples/declarative/toys/dynamic/qml/PaletteItem.qml
blob: dcb5cc32c94e2d4383ddc7f0c7f79f6b9c66ae14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import Qt 4.7
import "itemCreation.js" as Code

Image {
    id: paletteItem

    property string componentFile
    property string image

    source: image

    MouseArea { 
        anchors.fill: parent

        onPressed: Code.startDrag(mouse);
        onPositionChanged: Code.continueDrag(mouse);
        onReleased: Code.endDrag(mouse);
    }
}