summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dynamic/PaletteItem.qml
blob: bb6036d5882fa66d38baf0127148635c1b35f3c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import Qt 4.6

GenericItem {
    id: itemButton
    property string file
    Script { source: "itemCreation.js" }
    MouseRegion { 
        anchors.fill: parent; 
        onPressed: startDrag(mouse);
        onPositionChanged: moveDrag(mouse);
        onReleased: endDrag(mouse);
    }
}