id: container
signal clicked
-
+
property string text
-
+
Rectangle {
-
anchors.fill: parent
y:parent.y
width:parent.width
height:parent.height
-
+
radius: 4
border.color: "grey"
-
+
Text {
id: button1
color: "#000000"
text: container.text; style: Text.Raised; styleColor: "black"
font.pixelSize: 22
font.family: "Tahoma"
- }
-
+ }
+
MouseArea {
id: mouseRegion
anchors.fill: parent
onClicked: { container.clicked(); }
-
+
onPressed: {
parent.color = "blue"
- }
-
+ }
+
onReleased: {
parent.color = "white"
+ }
}
}
+
}
-
-}