/**************************************************************************** ** ** Copyright (C) 2011 Nokia Institute of Technology. ** All rights reserved. ** Contact: Manager (renato.chencarek@openbossa.org) ** ** This file is part of the Incredible Circus project. ** ** GNU Lesser General Public License Usage ** ** This file may be used under the terms of the GNU Lesser General Public ** License version 2.1 as published by the Free Software Foundation and ** appearing in the file LICENSE.LGPL included in the packaging of this ** file. Please review the following information to ensure the GNU Lesser ** General Public License version 2.1 requirements will be met: ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ****************************************************************************/ import QtQuick 1.1 import com.nokia.meego 1.0 Window { Component { id: coreComponent Core { } } Component { id: splashComponent Image { source: "image://cache/_intro/splash/bg.png" } } Loader { id: loader anchors.fill: parent sourceComponent: splashComponent Component.onCompleted: { screen.allowedOrientations = Screen.Portrait; } } function doLoad() { loader.sourceComponent = coreComponent; sound.play("intro_sound"); soundDelay.start(); } Timer { id: soundDelay interval: 6000 onTriggered: { if (loader.item && loader.item.state == "") sound.playLoop("menu_sound"); } } }