aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/window/Splash.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/window/Splash.qml')
-rw-r--r--examples/quick/window/Splash.qml11
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/quick/window/Splash.qml b/examples/quick/window/Splash.qml
index 092e6e6fc2..c981bd2585 100644
--- a/examples/quick/window/Splash.qml
+++ b/examples/quick/window/Splash.qml
@@ -43,6 +43,7 @@ import QtQuick.Window 2.1
//! [splash-properties]
Window {
+ id: splash
visible: true
width: splashImage.width
height: splashImage.height
@@ -50,7 +51,8 @@ Window {
title: "Splash Window"
modality: Qt.ApplicationModal
flags: Qt.SplashScreen
- property int timeout: 2000
+ property int timeoutInterval: 2000
+ signal timeout
//! [splash-properties]
//! [screen-properties]
x: (Screen.width - splashImage.width) / 2
@@ -67,8 +69,11 @@ Window {
}
//! [timer]
Timer {
- interval: timeout; running: true; repeat: false
- onTriggered: visible = false
+ interval: timeoutInterval; running: true; repeat: false
+ onTriggered: {
+ visible = false
+ splash.timeout()
+ }
}
//! [timer]
}