aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/window/window.qml
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-05-29 10:58:38 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-30 12:07:21 +0200
commit251a267fb5a48790b1446b5eda3ee553cd4abfab (patch)
tree1dc788762c7cf6e5de82ecedcbe8aad58f781011 /examples/quick/window/window.qml
parent124473935a99598bfe63538c5a388590cc1cc229 (diff)
window example: show only the splash screen until the timeout
The window takes time to resize itself; we can avoid letting the user see that by delaying visibility of the main window. Change-Id: I81d656102b384a66b5539cbd879aadb85261ba33 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'examples/quick/window/window.qml')
-rw-r--r--examples/quick/window/window.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/quick/window/window.qml b/examples/quick/window/window.qml
index 1d7282f7a1..67e2ba40ff 100644
--- a/examples/quick/window/window.qml
+++ b/examples/quick/window/window.qml
@@ -46,14 +46,11 @@ QtObject {
property real defaultSpacing: 10
property SystemPalette palette: SystemPalette { }
- property var splashWindow: Splash { }
-
property var controlWindow: Window {
width: 400
height: col.implicitHeight + defaultSpacing * 2
color: palette.window
title: "Control Window"
- visible: true
Column {
id: col
anchors.fill: parent
@@ -177,4 +174,8 @@ QtObject {
}
}
}
+
+ property var splashWindow: Splash {
+ onTimeout: controlWindow.visible = true
+ }
}