Warning, /education/gcompris/src/activities/crane/Controls.qml is written in an unsupported language. File is not indexed.

0001 /* GCompris - Controls.qml
0002  *
0003  * SPDX-FileCopyrightText: 2016 Stefan Toncu <stefan.toncu29@gmail.com>
0004  *
0005  * Authors:
0006  *   <Marc BRUN> (GTK+ version)
0007  *   Stefan Toncu <stefan.toncu29@gmail.com> (Qt Quick port)
0008  *
0009  *   SPDX-License-Identifier: GPL-3.0-or-later
0010  */
0011 
0012 import QtQuick 2.12
0013 import "crane.js" as Activity
0014 
0015 Image {
0016     property string command
0017     height: parent.paintedHeight * 0.75
0018     sourceSize.width: height
0019     fillMode: Image.PreserveAspectFit
0020     anchors {
0021         verticalCenter: parent.verticalCenter
0022     }
0023     MouseArea {
0024         anchors.fill: parent
0025         onPressed: parent.opacity = 0.6
0026         onReleased: parent.opacity = 1
0027         onClicked: {
0028             Activity.move(command)
0029         }
0030     }
0031 }