import QtQuick 2.4
import Ubuntu.Components 1.2
MainView {
width: units.gu(50)
height: units.gu(75)
Column {
spacing: units.gu(1)
anchors {
margins: units.gu(2)
fill: parent
}
property int mathPart: 1
property TextField focused: score1
Row {
id: row1
anchors.horizontalCenter: parent.horizontalCenter
spacing: units.gu(1)
width: parent.width
Label {
id: label
text: actualValue.toString()
width: (parent.width) ; height: units.gu(5)
property int actualValue: 0
}
}
Row {
id: row2
anchors.horizontalCenter: parent.horizontalCenter
spacing: units.gu(1)
width: parent.width
Repeater {
model: 3
Button {
width: (row2.width - units.gu(1)) / 3 ; height: units.gu(8)
color: UbuntuColors.darkGrey
onClicked: parent.parent.focused.actualValue += 1 * mathPart
}
}
}
}
}