Page
{
id: newGameDialogPage
- tools: commonTools
+
orientationLock: PageOrientation.LockLandscape
property string name
property bool askAddition
property bool askTurnsPerAddition
+ tools: ToolBarLayout
+ {
+ ToolButton { iconSource: "toolbar-back"; onClicked: pageStack.pop() }
+ }
+
Label
color:"white"
font.pointSize: 64
- text: newGameDialog.name
+ text: newGameDialogPage.name
}
Row
TextField
{
id: blackInitialTime
- enabled: !equalTimesSwitch.checked
+ visible: !equalTimesSwitch.checked
readOnly: true
TextField
{
id: blackAdditionalTime
- visible: newGameDialogPage.askAddition
- enabled: !equalTimesSwitch.checked
+ visible: newGameDialogPage.askAddition && !equalTimesSwitch.checked
readOnly: true
anchors.top: whiteInitialTime.bottom
TextField
{
id: blackTurnsPerAddition
- visible: newGameDialogPage.askTurnsPerAddition
+ visible: newGameDialogPage.askTurnsPerAddition && !equalTimesSwitch.checked
readOnly: true;
anchors.top: whiteAdditionalTime.bottom