equal
deleted
inserted
replaced
1 import QtQuick 2.7 |
1 import QtQuick |
2 import QtQuick.Controls 2.0 |
2 import QtQuick.Controls |
3 import QtQuick.Layouts 1.3 |
3 import QtQuick.Layouts |
4 |
4 |
5 import Hedgewars.Engine 1.0 |
5 import Hedgewars.Engine 1.0 |
6 |
6 |
7 Item { |
7 Item { |
8 id: element |
8 id: element |
9 property alias button1: button1 |
9 property alias button1: button1 |
10 property alias previewImage: previewImage |
10 property alias previewImage: previewImage |
|
11 property alias preview: preview |
11 property alias gameButton: gameButton |
12 property alias gameButton: gameButton |
12 width: 1024 |
|
13 height: 800 |
|
14 property alias netButton: netButton |
13 property alias netButton: netButton |
15 property alias tickButton: tickButton |
14 property alias tickButton: tickButton |
16 property alias gameView: gameView |
15 property alias gameView: gameView |
|
16 property alias gameMouseArea: gameMouseArea |
17 |
17 |
18 ColumnLayout { |
18 ColumnLayout { |
19 anchors.fill: parent |
19 anchors.fill: parent |
20 |
20 |
21 RowLayout { |
21 RowLayout { |
37 text: qsTr("Tick") |
37 text: qsTr("Tick") |
38 } |
38 } |
39 } |
39 } |
40 |
40 |
41 Rectangle { |
41 Rectangle { |
|
42 id: preview |
42 border.color: "orange" |
43 border.color: "orange" |
43 border.width: 5 |
44 border.width: 5 |
44 radius: 5 |
45 radius: 5 |
45 |
46 |
46 Layout.minimumHeight: 256 |
47 Layout.minimumHeight: 256 |
81 |
82 |
82 Layout.fillWidth: true |
83 Layout.fillWidth: true |
83 Layout.fillHeight: true |
84 Layout.fillHeight: true |
84 |
85 |
85 MouseArea { |
86 MouseArea { |
|
87 id: gameMouseArea |
86 anchors.fill: parent |
88 anchors.fill: parent |
|
89 |
|
90 property point lastPoint |
87 } |
91 } |
88 } |
92 } |
89 } |
93 } |
90 |
94 |
91 Button { |
95 Button { |