From b406a3de45aff6f3a3ab746a3c319a882c8bee5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Heli=20Hyv=C3=A4ttinen?= Date: Fri, 12 Aug 2011 23:00:39 +0300 Subject: [PATCH] Pause button in toolbar Works, but looks bad and is visible even ehen game paused (but does not unpause) --- qml/ClocksPage.qml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/qml/ClocksPage.qml b/qml/ClocksPage.qml index 77684b3..716e5c0 100644 --- a/qml/ClocksPage.qml +++ b/qml/ClocksPage.qml @@ -29,7 +29,17 @@ import ChessClocks 1.0 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 @@ -42,6 +52,7 @@ Page WrappedClocksWidget { + id: wrappedClocksWidget Component.onCompleted: startGame("",300,30,1,400,40,2) } -- 1.7.9.5