Warning, /education/gcompris/src/activities/guesscount/DropTile.qml is written in an unsupported language. File is not indexed.
0001 /* GCompris - DropTile.qml 0002 * 0003 * SPDX-FileCopyrightText: 2016 RAHUL YADAV <rahulyadav170923@gmail.com> 0004 * 0005 * Authors: 0006 * Pascal Georges <pascal.georges1@free.fr> (GTK+ version) 0007 * RAHUL YADAV <rahulyadav170923@gmail.com> (Qt Quick port) 0008 * 0009 * SPDX-License-Identifier: GPL-3.0-or-later 0010 */ 0011 import QtQuick 2.12 0012 0013 import "../../core" 0014 import "guesscount.js" as Activity 0015 0016 DropArea { 0017 id: dragTarget 0018 property string type 0019 property var droppedItem 0020 keys: [ type ] 0021 Rectangle { 0022 id: dropRectangle 0023 width: parent.width 0024 height: parent.height 0025 anchors.fill: parent 0026 color: type == "operators" ? "#80F16F6F" : "#8075D21B" // red or green 0027 border.width: 5 0028 border.color: type == "operators" ? "#FFF16F6F" : "#FF75D21B" // red or green 0029 radius: 10 0030 states: [ 0031 State { 0032 when: dragTarget.containsDrag 0033 PropertyChanges { 0034 target: dropRectangle 0035 color: "transparent" 0036 border.color: "#80FFFFFF" 0037 } 0038 } 0039 ] 0040 } 0041 }