summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dynamic/qml/PaletteItem.qml
blob: 8a9a9ee953a0249c8eece37771a617940d3b9200 (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" }
    MouseArea { 
        anchors.fill: parent; 
        onPressed: startDrag(mouse);
        onPositionChanged: moveDrag(mouse);
        onReleased: endDrag(mouse);
    }
}