mathtrainingstuff/calender/CalenderGameOverPage.qml

53 lines
1.1 KiB
QML
Raw Normal View History

2018-12-15 19:44:11 +01:00
import QtQuick 2.11
import QtQuick.Controls 2.4
import "./"
Page {
id: root
signal pageOpened()
Label {
id: percent
text: "You had " + calender.dateCount/calender.correct*100 + "% right!"
font.pixelSize: parent.width * 0.05
anchors {
horizontalCenter: parent.horizontalCenter
top: parent.top
topMargin: parent.height * 0.2
}
}
Row {
id: buttonRow
anchors {
horizontalCenter: parent.horizontalCenter
bottom: parent.bottom
bottomMargin: parent.height * 0.15
}
height: childrenRect.height
width: childrenRect.width
spacing: parent.width * 0.1
RoundButton {
id: homeButton
height: root.width * 0.2
width: height
text: "home"
onClicked: {
game.start()
}
}
RoundButton {
id: startButtons
height: root.width * 0.2
width: height
text: "start"
onClicked: {
calender.start()
}
}
}
}