1/* GCompris - OperandRow.qml 2 * 3 * SPDX-FileCopyrightText: 2016 RAHUL YADAV <rahulyadav170923@gmail.com> 4 * 5 * Authors: 6 * Pascal Georges <pascal.georges1@free.fr> (GTK+ version) 7 * RAHUL YADAV <rahulyadav170923@gmail.com> (Qt Quick port) 8 * 9 * SPDX-License-Identifier: GPL-3.0-or-later 10 */ 11 12import QtQuick 2.9 13import "../../core" 14 15Row { 16 id: operandRow 17 property alias repeater: repeater 18 property int rowSum 19 spacing: 20 20 Rectangle { 21 id: operands 22 width: parent.width*0.328 23 height: parent.height 24 radius: 10 25 color: "#75D21B" //green 26 Rectangle { 27 id: insideFill 28 width: parent.width - anchors.margins 29 height: parent.height - anchors.margins 30 anchors.verticalCenter: parent.verticalCenter 31 anchors.horizontalCenter: parent.horizontalCenter 32 anchors.margins: parent.height/4 33 radius: 10 34 color: "#E8E8E8" //paper white 35 } 36 GCText { 37 anchors.horizontalCenter: parent.horizontalCenter 38 anchors.verticalCenter: parent.verticalCenter 39 fontSize: mediumSize 40 text: qsTr("Numbers") 41 } 42 } 43 Repeater { 44 id: repeater 45 delegate: DragTile { 46 id: root 47 type: "operands" 48 width: operandRow.width*0.1 49 height: operandRow.height 50 } 51 } 52} 53