summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dynamic/qml/PaletteItem.qml
blob: e8f2ed42f7094f11cb065adcabc758b368b7de28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
    }
}