equal
deleted
inserted
replaced
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 textField1: textField1 |
|
7 property alias button1: button1 |
8 property alias button1: button1 |
|
9 property alias previewImage: previewImage |
|
10 property alias gameButton: gameButton |
|
11 width: 1024 |
|
12 height: 800 |
|
13 property alias tickButton: tickButton |
|
14 property alias item1: item1 |
8 |
15 |
9 RowLayout { |
16 RowLayout { |
10 anchors.horizontalCenter: parent.horizontalCenter |
17 anchors.horizontalCenter: parent.horizontalCenter |
11 anchors.topMargin: 20 |
18 anchors.topMargin: 20 |
12 anchors.top: parent.top |
19 anchors.top: parent.top |
13 |
20 |
14 TextField { |
21 Button { |
15 id: textField1 |
22 id: button1 |
16 placeholderText: qsTr("Text Field") |
23 text: qsTr("Preview") |
17 } |
24 } |
18 |
25 |
19 Button { |
26 Button { |
20 id: button1 |
27 id: gameButton |
21 text: qsTr("Press Me") |
28 text: qsTr("Game") |
|
29 } |
|
30 |
|
31 Button { |
|
32 id: tickButton |
|
33 text: qsTr("Tick") |
22 } |
34 } |
23 } |
35 } |
|
36 |
|
37 Image { |
|
38 id: previewImage |
|
39 x: 8 |
|
40 y: 20 |
|
41 width: 256 |
|
42 height: 128 |
|
43 source: "qrc:/res/iconTime.png" |
|
44 cache: false |
|
45 } |
|
46 |
|
47 GameView { |
|
48 id: item1 |
|
49 x: 8 |
|
50 y: 154 |
|
51 width: 1008 |
|
52 height: 638 |
|
53 } |
24 } |
54 } |