9 property string imageSource: ""
10 property int imageRotation: 0
12 property alias iconRotation: icon.rotation
16 source: "images/toolbutton.sci"
17 width: container.width; height: container.height
18 //visible: (container.imageSource=="")
23 source: "images/toolbutton.sci"
24 width: container.width; height: container.height
25 //visible: (container.imageSource=="")
29 source: container.imageSource
30 rotation: container.imageRotation
31 //fillMode: Image.PreserveAspectFit
33 anchors.centerIn: buttonImage;
34 //width: container.width; height: container.height
38 anchors.fill: buttonImage
39 onClicked: { container.clicked(); }
43 anchors.centerIn: buttonImage; font.bold: true
44 text: container.text; style: Text.Raised; styleColor: "black"
45 visible: (container.imageSource=="")
50 when: mouseRegion.pressed == true
51 PropertyChanges { target: pressed; opacity: 1 }