Pause button in the middle of toolbar
authorHeli Hyvättinen <heli.hyvattinen@kymp.net>
Sat, 20 Aug 2011 04:57:42 +0000 (07:57 +0300)
committerHeli Hyvättinen <heli.hyvattinen@kymp.net>
Sat, 20 Aug 2011 04:57:42 +0000 (07:57 +0300)
qml/ClocksPage.qml

index c8cabae..8a5719f 100644 (file)
@@ -56,8 +56,12 @@ Page
         {
             flat:  true //undocumented ToolButton feature: removes button background (showing just the icon)
             iconSource: ":/rc/pic/pausebutton.png"
-            onClicked: wrappedClocksWidget.pause()
+            onClicked:
+            {
+                wrappedClocksWidget.pause()
+            }
         }
+        Item{}  //placeholder needed to put pause button in the middle
     }