mathtrainingstuff/StartPage.qml
Max 6a25683375 added ColumnLayout for StartPage
with tickInterval, numCount, min and max
2018-11-24 13:50:06 +01:00

45 lines
1,006 B
QML

import QtQuick 2.9
import QtQuick.Controls 2.4
import "./"
Page {
id: root
signal pageOpened()
RoundButton {
id: calenderButton
text: "calender"
height: parent.width * 0.2
width: height
font.pixelSize: parent.width * 0.03
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.state = "calender"
}
}
RoundButton {
id: calculatorButton
text: "calculator"
height: parent.width * 0.2
width: height
font.pixelSize: parent.width * 0.03
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.state = "calculator"
}
}
}