Works, but looks bad and is visible even ehen game paused (but does not
unpause)
Page
{
id: clocksPage
- tools: commonTools
+
+
+ tools: ToolBarLayout
+ {
+ ToolButton { iconSource: "toolbar-back"; onClicked: pageStack.pop() }
+ ToolButton
+ {
+ iconSource: ":/rc/pic/pausebutton.png"
+ onClicked: wrappedClocksWidget.pause()
+ }
+ }
property int whiteInitialTime
property int blackInitialTime
WrappedClocksWidget
{
+ id: wrappedClocksWidget
Component.onCompleted: startGame("",300,30,1,400,40,2)
}