Warning, /education/gcompris/src/activities/comparator/ComparatorSign.qml is written in an unsupported language. File is not indexed.
0001 /* GCompris - ComparatorSign.qml
0002 *
0003 * SPDX-FileCopyrightText: 2022 Johnny Jazeix <jazeix@gmail.com>
0004 *
0005 * Authors:
0006 * Johnny Jazeix <jazeix@gmail.com>
0007 * Timothée Giet <animtim@gmail.com>
0008 * SPDX-License-Identifier: GPL-3.0-or-later
0009 */
0010 import QtQuick 2.12
0011
0012 import "../../core"
0013
0014 BarButton {
0015 id: signButton
0016 height: parent.height
0017 width: parent.height
0018 sourceSize.height: height * scale
0019 source: signValue == "=" ? "qrc:/gcompris/src/activities/comparator/resource/equal.svg" :
0020 "qrc:/gcompris/src/activities/comparator/resource/superior.svg"
0021 rotation: signValue == "<" ? 180 : 0
0022 property string signValue
0023 property bool isSelected: false
0024
0025 enabled: !bonus.isPlaying
0026
0027 onClicked: {
0028 symbolSelectionList.enterSign(signValue);
0029 }
0030 Rectangle {
0031 z: -1
0032 anchors.fill: parent
0033 radius: width * 0.5
0034 color: "#34FFFFFF"
0035 border.color: isSelected ? "#FFFFFF" : "#34000000"
0036 border.width: isSelected ? 6 : 4
0037 }
0038 }