Warning, /education/gcompris/src/activities/binary_bulb/resource/tutorial1.qml is written in an unsupported language. File is not indexed.

0001 /* GCompris - tutorial1.qml
0002  *
0003  * SPDX-FileCopyrightText: 2018 Timothée Giet <animtim@gcompris.net>
0004  *
0005  * Authors:
0006  *   Timothée Giet <animtim@gcompris.net>
0007  *
0008  *   SPDX-License-Identifier: GPL-3.0-or-later
0009  */
0010 import QtQuick 2.12
0011 import GCompris 1.0 
0012 
0013 import "../../../core"
0014 
0015 Rectangle {
0016     anchors.fill: parent
0017     color: "#80FFFFFF"
0018     
0019     GCText {
0020         id: firstList
0021         anchors {
0022             left: parent.left
0023             verticalCenter: parent.verticalCenter
0024             leftMargin: parent.height * 0.1
0025         }
0026         text: 
0027         "0 = 0000\n1 = 0001\n2 = 0010\n3 = 0011\n4 = 0100\n5 = 0101\n6 = 0110\n7 = 0111\n"
0028         font.pixelSize: parent.height / 15
0029         color: "black"
0030         horizontalAlignment: Text.AlignHLeft
0031         width: 0.4 * parent.width
0032         height: 0.9 * parent.height
0033         z: 2
0034     }
0035     
0036     GCText {
0037         anchors {
0038             left: parent.horizontalCenter
0039             verticalCenter: parent.verticalCenter
0040         }
0041         text: 
0042         "08 = 1000\n09 = 1001\n10 = 1010\n11 = 1011\n12 = 1100\n13 = 1101\n14 = 1110\n15 = 1111"
0043         font.pixelSize: firstList.font.pixelSize
0044         color: "black"
0045         horizontalAlignment: Text.AlignHLeft
0046         width: 0.4 * parent.width
0047         height: 0.9 * parent.height
0048         z: 2
0049     }
0050 }