qmlfrontend/Page1Form.ui.qml
branchqmlfrontend
changeset 12881 b544bbbd0696
parent 12868 fe16fa088b69
equal deleted inserted replaced
12868:fe16fa088b69 12881:b544bbbd0696
     1 import QtQuick 2.7
     1 import QtQuick 2.7
     2 import QtQuick.Controls 2.0
     2 import QtQuick.Controls 2.0
     3 import QtQuick.Layouts 1.3
     3 import QtQuick.Layouts 1.3
     4 
     4 
       
     5 import Hedgewars.Engine 1.0
       
     6 
     5 Item {
     7 Item {
     6   property alias button1: button1
     8     property alias button1: button1
     7   property alias previewImage: previewImage
     9     property alias previewImage: previewImage
     8   property alias gameButton: gameButton
    10     property alias gameButton: gameButton
       
    11     width: 1024
       
    12     height: 800
       
    13     property alias tickButton: tickButton
       
    14     property alias item1: item1
     9 
    15 
    10     RowLayout {
    16     RowLayout {
    11         anchors.horizontalCenter: parent.horizontalCenter
    17         anchors.horizontalCenter: parent.horizontalCenter
    12         anchors.topMargin: 20
    18         anchors.topMargin: 20
    13         anchors.top: parent.top
    19         anchors.top: parent.top
    14 
    20 
    15         Button {
    21         Button {
    16           id: button1
    22             id: button1
    17           text: qsTr("Preview")
    23             text: qsTr("Preview")
    18         }
    24         }
    19 
    25 
    20         Button {
    26         Button {
    21             id: gameButton
    27             id: gameButton
    22             text: qsTr("Game")
    28             text: qsTr("Game")
    23         }
    29         }
       
    30 
       
    31         Button {
       
    32             id: tickButton
       
    33             text: qsTr("Tick")
       
    34         }
    24     }
    35     }
    25 
    36 
    26     Image {
    37     Image {
    27         id: previewImage
    38         id: previewImage
    28         x: 188
    39         x: 8
    29         y: 176
    40         y: 20
    30         width: 256
    41         width: 256
    31         height: 128
    42         height: 128
    32         source: "qrc:/res/iconTime.png"
    43         source: "qrc:/res/iconTime.png"
    33         cache: false
    44         cache: false
    34     }
    45     }
       
    46 
       
    47     GameView {
       
    48         id: item1
       
    49         x: 8
       
    50         y: 154
       
    51         width: 1008
       
    52         height: 638
       
    53     }
    35 }
    54 }