summaryrefslogtreecommitdiffstats
path: root/examples/sensors/maze/Congratulation.qml
blob: a1e54adaa4caa4125862c854a0bab7e8aaef4029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

//Import the declarative plugins
import QtQuick

//Import the javascript functions for this game
import "lib.js" as Lib

//Implementation of the Congratulation control
Item {
    x: Lib.cellDimension
    y: Lib.cellDimension
    width: Lib.cellDimension * (Lib.dimension - 2)
    height: Lib.cellDimension * (Lib.dimension - 2)

    //Containing a animated gif image
    AnimatedImage {
        id: img
        anchors.fill: parent
        visible:  true
        source: "content/congratulations.gif"
    }
}