summaryrefslogtreecommitdiffstats
path: root/demos/declarative/samegame/SamegameCore/Dialog.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/samegame/SamegameCore/Dialog.qml')
-rw-r--r--demos/declarative/samegame/SamegameCore/Dialog.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/declarative/samegame/SamegameCore/Dialog.qml b/demos/declarative/samegame/SamegameCore/Dialog.qml
index 8dd12f6800..c71a4b3a37 100644
--- a/demos/declarative/samegame/SamegameCore/Dialog.qml
+++ b/demos/declarative/samegame/SamegameCore/Dialog.qml
@@ -47,13 +47,14 @@ Rectangle {
property Item text: dialogText
signal closed
-
+ signal opened
function forceClose() {
page.closed();
page.opacity = 0;
}
function show(txt) {
+ page.opened();
dialogText.text = txt;
page.opacity = 1;
}
@@ -62,7 +63,7 @@ Rectangle {
color: "white"
border.width: 1
opacity: 0
-
+ visible: opacity > 0
Behavior on opacity {
NumberAnimation { duration: 1000 }
}