New game dialog stub knows its game mode
authorHeli Hyvättinen <heli.hyvattinen@kymp.net>
Fri, 5 Aug 2011 21:50:55 +0000 (00:50 +0300)
committerHeli Hyvättinen <heli.hyvattinen@kymp.net>
Fri, 5 Aug 2011 21:50:55 +0000 (00:50 +0300)
qml/MainPage.qml

index ef11a4c..c200eeb 100644 (file)
@@ -92,7 +92,7 @@ Page {
             MouseArea
             {
                 anchors.fill: parent
-                onClicked: newGameDialog.open()
+                onClicked: {newGameDialog.name = name; newGameDialog.open()}
             }
         }
 
@@ -105,7 +105,17 @@ Page {
     Dialog
     {
         id:newGameDialog
-        title:Label   { color:"white" ;text:"Normal Clock"}
+
+        property string name
+
+
+        title:Label
+        {
+            color:"white"
+            font.pointSize: 40
+            text: newGameDialog.name
+        }
+
 
         content:
             Row
@@ -120,7 +130,8 @@ Page {
                   height: switchComponent.height
                   verticalAlignment: Text.AlignVCenter
                   text: "Equal times"
-                  color: white
+                  color: "white"
+                  font.pointSize: 16
                 }
 
                 Switch