summaryrefslogtreecommitdiffstats
path: root/examples/sensors/maze/Congratulation.qml
blob: 2f5ffb1aaef8abd17be343fa42c66dfd35632ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Import the declarative plugins
import QtQuick 2.0

//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: "images/congratulations.gif"
    }
}