Additional time and turns per addition only show up when needed
authorHeli Hyvättinen <heli.hyvattinen@kymp.net>
Wed, 10 Aug 2011 08:51:32 +0000 (11:51 +0300)
committerHeli Hyvättinen <heli.hyvattinen@kymp.net>
Wed, 10 Aug 2011 08:51:53 +0000 (11:51 +0300)
..in the new game dialog

qml/MainPage.qml

index 268b025..e32f942 100644 (file)
@@ -239,17 +239,20 @@ Page {
                 TextField
                 {
                     id: whiteAdditionalTime
+                    visible:  newGameDialog.askAddition
                     readOnly: true
 
                     MouseArea
                     {
                         anchors.fill: parent
-                        onClicked: {timePicker.timeType = "additional";  timePicker.player = "white"; timePicker.open()}                    }
+                        onClicked: {timePicker.timeType = "additional";  timePicker.player = "white"; timePicker.open()}
+                    }
                 }
 
                 TextField
                 {
                     id: blackAdditionalTime
+                    visible: newGameDialog.askAddition
                     readOnly: true
 
                     MouseArea
@@ -273,6 +276,7 @@ Page {
                 TextField
                 {
                     id: whiteTurnsPerAddition
+                    visible: newGameDialog.askAddition
                     inputMask: "D00"
                     text: "1"
                 }
@@ -280,6 +284,7 @@ Page {
                 TextField
                 {
                     id: blackTurnsPerAddition
+                    visible: newGameDialog.askAddition
                     inputMask: "D00"
                     text: "1"
                 }