Changeset View
Changeset View
Standalone View
Standalone View
src/activities/numbers-odd-even/resource/tutorial2.qml
- This file was added.
1 | /* GCompris - tutorial2.qml | ||||
---|---|---|---|---|---|
2 | * | ||||
3 | * Copyright (C) 2019 Deepak Kumar <deepakdk2431@gmail.com> | ||||
4 | * | ||||
5 | * Authors: | ||||
6 | * Deepak Kumar <deepakdk2431@gmail.com> | ||||
7 | * | ||||
8 | * This program is free software; you can redistribute it and/or modify | ||||
9 | * it under the terms of the GNU General Public License as published by | ||||
10 | * the Free Software Foundation; either version 3 of the License, or | ||||
11 | * (at your option) any later version. | ||||
12 | * | ||||
13 | * This program is distributed in the hope that it will be useful, | ||||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
16 | * GNU General Public License for more details. | ||||
17 | * | ||||
18 | * You should have received a copy of the GNU General Public License | ||||
19 | * along with this program; if not, see <https://www.gnu.org/licenses/>. | ||||
20 | */ | ||||
21 | | ||||
22 | import QtQuick 2.6 | ||||
23 | import GCompris 1.0 | ||||
24 | | ||||
25 | import "../../../core" | ||||
26 | | ||||
27 | Rectangle { | ||||
28 | anchors.fill: parent | ||||
29 | color: "#80FFFFFF" | ||||
30 | | ||||
31 | GCText { | ||||
32 | id: odd | ||||
33 | text: qsTr("For example: 15, 19, 51, 65, 103, 119, 169, 185, 505, 533, 701, 799, 845, 897, 1001.All of these numbers are odd numbers as they do not leave remainder 0 when divisible by 2.") | ||||
34 | fontSizeMode: Text.Fit | ||||
35 | color: "black" | ||||
36 | horizontalAlignment: Text.AlignLeft | ||||
37 | width: Math.min(implicitWidth, 0.8 * parent.width) | ||||
38 | height: Math.min(implicitHeight, 0.5 * parent.height) | ||||
39 | wrapMode: Text.WordWrap | ||||
40 | z: 2 | ||||
41 | } | ||||
42 | } |