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