New game dialog stub. with switch
[chessclock] / qml / MainPage.qml
1 import QtQuick 1.1
2 import com.meego 1.0
3 import QtQuick 1.0
4
5
6 Page {
7     id: mainPage
8     tools: commonTools
9     Label {
10         id: label
11         anchors.centerIn: parent
12         text: qsTr("Hello world!")
13         visible: false
14     }
15     Button{
16         anchors.horizontalCenter: parent.horizontalCenter
17         anchors.top: label.bottom
18         anchors.topMargin: 10
19         text: qsTr("Click here!")
20         onClicked: newGameDialog.open()
21     }
22
23 //    Image {
24 //        id: image1
25 //        anchors.centerIn: parent
26 //        x: 0
27 //        y: 0
28 //        width: 100
29 //        height: 100
30 //        source: ":/pic/logo.png"
31 //    }
32
33 //    ListView {
34 //        id: list_view1
35 //        x: 0
36 //        y: 0
37 //        width: 300
38 //        height: 300
39 //    }
40
41     Dialog
42     {
43         id:newGameDialog
44         title:Label   { color:"white" ;text:"Normal Clock"}
45
46         content:
47             Row
48             {
49                 id: rowRow
50                 spacing: 10
51                 anchors.fill: parent
52
53                 Switch
54                 {
55                     id: switchComponent
56                 }
57
58 //                Text
59 //                {
60 //                  width: rowRow.width - rowRow.spacing - switchComponent.width
61 //                  height: switchComponent.height
62 //                  verticalAlignment: Text.AlignVCenter
63 //                  text: "Equal times"
64 //    //              font.pixelSize: platformStyle.fontSizeMedium
65 //                  color: white
66 //                }
67
68         content: Row
69             }
70   //          Label   { color:"white" ;text:"Content Comes Here"}
71         buttons:Button {id: bOk; text: "OK"; onClicked: newGameDialog.accept()}
72     }
73
74 }
75
76