mathtrainingstuff/qml/StartPage.qml

61 lines
1.2 KiB
QML

import QtQuick 2.9
import QtQuick.Controls 2.4
import "./"
import "./components"
Page {
id: root
background: Rectangle {
color: settings.theme("PageBackgroundColor")
}
signal pageOpened()
GameComboBox {
height: 40
width: 140
anchors {
top: parent.top
left: parent.left
}
}
ComboBox {
anchors {
top: parent.top
topMargin: 40
}
}
/*
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()
}
}
*/
}