added functions that change the states instead of directly change the state completed
This commit is contained in:
parent
623b28b045
commit
5ebc6048b0
|
@ -79,8 +79,7 @@ Page {
|
||||||
width: height
|
width: height
|
||||||
text: "home"
|
text: "home"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
game.state = "starting"
|
game.start()
|
||||||
calculator.reset()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ Page {
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
game.state = "calender"
|
game.calender()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ Page {
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
game.state = "calculator"
|
game.calculator()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue