Using sheet instead of dialog for new game dialog
authorHeli Hyvättinen <heli.hyvattinen@kymp.net>
Tue, 16 Aug 2011 20:28:23 +0000 (23:28 +0300)
committerHeli Hyvättinen <heli.hyvattinen@kymp.net>
Tue, 16 Aug 2011 20:28:23 +0000 (23:28 +0300)
chessclock.pro
qml/MainPage.qml

index 6906150..cca7669 100644 (file)
@@ -83,8 +83,7 @@ OTHER_FILES += \
     qtc_packaging/debian_harmattan/changelog \
     qml/ClocksPage.qml \
     qml/AboutPage.qml \
-    qml/NewGameDialog.qml \
-    qml/TimePicker.qml
+
 
 RESOURCES += \
     res.qrc \
index e615e68..82c84a0 100644 (file)
@@ -177,7 +177,7 @@ Page {
 
 
 
-    Dialog
+    Sheet
     {
         id:newGameDialog
 
@@ -199,19 +199,26 @@ Page {
 
         }
 
-        title:Label
-        {
-            color:"white"
-            font.pointSize: 64
-            text: newGameDialog.name
-        }
+//        title:Label
+//        {
+//            color:"white"
+//            font.pointSize: 64
+//            text: newGameDialog.name
+//        }
 
+        acceptButtonText: "Start game"
+        rejectButtonText: "Cancel"
 
         content:
+
+
+
             Grid
             {
+//                anchors.top: rowRow.bottom
                 columns: 3
 
+
                 Row
                 {
                     id: rowRow
@@ -221,8 +228,8 @@ Page {
 
                     Text
                     {
- //                     width: rowRow.width - rowRow.spacing - switchComponent.width - whiteSmall.width - blackSmall.width
- //                     height: switchComponent.height
+//                     width: rowRow.width - rowRow.spacing - switchComponent.width - whiteSmall.width - blackSmall.width
+//                     height: switchComponent.height
                         verticalAlignment: Text.AlignVCenter
                         text: "Equal times"
                         color: "white"
@@ -236,14 +243,18 @@ Page {
                         {
                             if (checked)
                             {
-                                blackInitialTime.text = whiteInitialTime.text
-                                blackAdditionalTime.text = whiteAdditionalTime.text
-                                blackTurnsPerAddition.text = whiteTurnsPerAddition.text
-
                             }
+
                         }
                     }
                 }
+
+
+                Item
+                {
+                    id: placeholder
+                }
+
                 Image
                 {
                     id: whiteSmall
@@ -408,21 +419,10 @@ Page {
 
         }
 
-
+    }
          }
 
 
-        buttons:
-
-            Button
-            {
-                id: bOk
-                text: "Start game"
-                y: 45
-
-                onClicked: newGameDialog.accept()
-            }
-    }
 
     TimePickerDialog
     {