Initial and additional times no longer default to all zero
authorHeli Hyvättinen <heli.hyvattinen@kymp.net>
Tue, 23 Aug 2011 19:13:40 +0000 (22:13 +0300)
committerHeli Hyvättinen <heli.hyvattinen@kymp.net>
Tue, 23 Aug 2011 19:13:40 +0000 (22:13 +0300)
All have the same initial default and use the values of previous game
whatever time control it had. The initial default does not make sense
for Hour Glass.

qml/NewGameDialogPage.qml

index 52d3c3d..dd6be90 100644 (file)
@@ -161,9 +161,9 @@ Page
                 anchors.top: whiteSmall.bottom
                 anchors.left: whiteTurnsPerAddition.left
 
-                property int hours
-                property int minutes
-                property int seconds
+                property int hours: 1
+                property int minutes: 30
+                property int seconds: 0
 
                 text: {hours + " h " + minutes + " min " + seconds + " s"}
 
@@ -187,9 +187,9 @@ Page
                 anchors.top: whiteSmall.bottom
                 anchors.left:  blackTurnsPerAddition.left
 
-                property int hours
-                property int minutes
-                property int seconds
+                property int hours: 1
+                property int minutes: 30
+                property int seconds: 0
 
                 text: hours + " h " + minutes + " min " + seconds + " s"
 
@@ -229,9 +229,9 @@ Page
                 anchors.topMargin: 15
   //              anchors.left: additionalTimeText.right
                 anchors.left: whiteTurnsPerAddition.left
-                property int hours
-                property int minutes
-                property int seconds
+                property int hours: 0
+                property int minutes: 0
+                property int seconds: 30
 
                 text: hours + " h " + minutes + " min " + seconds + " s"
 
@@ -252,9 +252,9 @@ Page
                 anchors.top: whiteAdditionalTime.top
                 anchors.left: blackTurnsPerAddition.left
 
-                property int hours
-                property int minutes
-                property int seconds
+                property int hours: 0
+                property int minutes: 0
+                property int seconds: 30
 
                 text: hours + " h " + minutes + " min " + seconds + " s"