mathtrainingstuff/StartPage.qml

45 lines
990 B
QML
Raw Normal View History

2018-11-22 12:39:09 +01:00
import QtQuick 2.9
import QtQuick.Controls 2.4
import "./"
Page {
id: root
2018-11-23 17:14:09 +01:00
2018-11-22 12:39:09 +01:00
signal pageOpened()
RoundButton {
2018-11-22 12:39:09 +01:00
id: calenderButton
text: "calender"
height: parent.width * 0.2
width: height
font.pixelSize: parent.width * 0.03
2018-11-22 12:39:09 +01:00
anchors {
left: parent.left
top: parent.top
leftMargin: parent.width * 0.5 - width * 0.5
topMargin: parent.height * 0.3 - height * 0.5
}
onClicked: {
game.calender()
2018-11-22 12:39:09 +01:00
}
}
RoundButton {
2018-11-22 12:39:09 +01:00
id: calculatorButton
text: "calculator"
height: parent.width * 0.2
width: height
font.pixelSize: parent.width * 0.03
2018-11-22 12:39:09 +01:00
anchors {
left: parent.left
top: parent.top
leftMargin: parent.width * 0.5 - width * 0.5
topMargin: parent.height * 0.6 - height * 0.5
}
onClicked: {
game.calculator()
2018-11-22 12:39:09 +01:00
}
}
}