1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
import QtQuick 2.4
import Ubuntu.Components 1.2
import Ubuntu.Components.ListItems 1.0 as ListItem
Flickable {
anchors {
fill: parent
}
contentHeight: columnMain.height
Column {
id: columnMain
spacing: units.gu(1)
height: childrenRect.height ; width: parent.width
anchors {
margins: units.gu(2)
}
property int mathPart: 1
Repeater {
id: textfieldModel
model: 1
Row {
id: row1
anchors.horizontalCenter: parent.horizontalCenter
spacing: units.gu(1)
width: parent.width
Repeater {
model: 2
TextField {
text: actualValue.toString()
width: (parent.width / 2) ; height: units.gu(5)
inputMethodHints: Qt.ImhFormattedNumbersOnly
property int actualValue: 0
}
}
}
}
Button {
enabled: textfieldModel.model < 4
text: "Add Players"
onClicked: textfieldModel.model = textfieldModel.model+1
}
}
}
|