mathtrainingstuff/qml/StartPage.qml

44 lines
964 B
QML
Raw Normal View History

2018-12-19 20:40:06 +01:00
import QtQuick 2.9
import QtQuick.Controls 2.4
import "./"
import "./components"
Page {
id: root
background: Rectangle {
color: settings.theme("PageBackgroundColor")
}
signal pageOpened()
GameButton {
id: calenderButton
text: "calender"
height: parent.width * 0.2
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()
}
}
GameButton {
id: calculatorButton
text: "calculator"
height: parent.width * 0.2
anchors {
left: parent.left
top: parent.top
leftMargin: parent.width * 0.5 - width * 0.5
topMargin: parent.height * 0.7 - height * 0.5
}
onClicked: {
game.calculator()
}
}
}