/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/

import QtQuick 2.2

Item
{
    id: root

    width: 200
    height: 200

    signal enterFinalStage

    property bool finalStageComplete: false;

    /* What comes below is some convenience for running the .qml files s
     * standalone using qmlscene. This can be quite handy when debugging
     * issues.
     */

    onFinalStageCompleteChanged: {
        if (typeof suite == 'undefined') {
            print("-> final stage complete");
        }
    }

    Component.onCompleted: {
        if (typeof suite == 'undefined') {
            print("-> not running in testsuite, now in initial state")
            suiteFaker.running = true;
        }
    }

    Timer {
        id: suiteFaker
        running: false;
        interval: 1000
        repeat: false;
        onTriggered: {
            print("-> entering final stage")
            enterFinalStage();
        }
    }

}
