summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml')
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml
index 45b1899..dc49d8e 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml
@@ -62,10 +62,12 @@ Rect {
anchors.verticalCenter: parent.verticalCenter
source: "../../shared/pics/ok.png"
opacity: 0
+//! [use signal]
MouseRegion {
anchors.fill: parent
onClicked: { toggle(); removeButton.confirmed.emit() }
}
+//! [use signal]
}
Text {
id: text
@@ -83,11 +85,13 @@ Rect {
states: [
State {
name: "opened"
+//! [use width]
SetProperty {
target: removeButton
property: "width"
value: removeButton.expandedWidth
}
+//! [use width]
SetProperty {
target: text
property: "opacity"