Commit 3c4eacba authored by luyikei's avatar luyikei

PropertyButton: emit pressed() when its MouseArea is pressed

parent fb435d46
......@@ -9,6 +9,8 @@ Rectangle {
property alias text: _text.text
property bool selected: false
signal pressed()
Text {
id: _text
color: "#EEEEEE"
......@@ -22,6 +24,7 @@ Rectangle {
onPressed: {
selected = !selected;
parent.pressed();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment