equal
deleted
inserted
replaced
3 import QtQuick.Layouts 1.3 |
3 import QtQuick.Layouts 1.3 |
4 |
4 |
5 import Hedgewars.Engine 1.0 |
5 import Hedgewars.Engine 1.0 |
6 |
6 |
7 Item { |
7 Item { |
8 property alias button1: button1 |
8 property alias button1: button1 |
9 property alias previewImage: previewImage |
9 property alias previewImage: previewImage |
10 property alias gameButton: gameButton |
10 property alias gameButton: gameButton |
11 width: 1024 |
11 width: 1024 |
12 height: 800 |
12 height: 800 |
13 property alias tickButton: tickButton |
13 property alias tickButton: tickButton |
14 property alias item1: item1 |
14 |
|
15 //property alias item1: item1 |
|
16 ColumnLayout { |
|
17 anchors.fill: parent |
15 |
18 |
16 RowLayout { |
19 RowLayout { |
17 anchors.horizontalCenter: parent.horizontalCenter |
20 Layout.alignment: Qt.AlignHCenter |
18 anchors.topMargin: 20 |
|
19 anchors.top: parent.top |
|
20 |
21 |
21 Button { |
22 Button { |
22 id: button1 |
23 id: button1 |
23 text: qsTr("Preview") |
24 text: qsTr("Preview") |
24 } |
25 } |
25 |
26 |
26 Button { |
27 Button { |
27 id: gameButton |
28 id: gameButton |
28 text: qsTr("Game") |
29 text: qsTr("Game") |
29 } |
30 } |
30 |
31 |
31 Button { |
32 Button { |
32 id: tickButton |
33 id: tickButton |
33 text: qsTr("Tick") |
34 text: qsTr("Tick") |
34 } |
35 } |
35 } |
36 } |
36 |
37 |
37 Image { |
38 Rectangle { |
|
39 border.color: "orange" |
|
40 border.width: 5 |
|
41 radius: 5 |
|
42 |
|
43 Layout.fillWidth: true |
|
44 Layout.fillHeight: true |
|
45 |
|
46 gradient: Gradient { |
|
47 GradientStop { |
|
48 position: 0 |
|
49 color: "lightblue" |
|
50 } |
|
51 GradientStop { |
|
52 position: 0.9 |
|
53 color: "blue" |
|
54 } |
|
55 GradientStop { |
|
56 position: 0.9 |
|
57 color: "darkblue" |
|
58 } |
|
59 GradientStop { |
|
60 position: 1.0 |
|
61 color: "darkblue" |
|
62 } |
|
63 } |
|
64 |
|
65 Image { |
38 id: previewImage |
66 id: previewImage |
39 x: 8 |
67 |
40 y: 20 |
68 anchors.fill: parent |
41 width: 256 |
69 anchors.margins: parent.radius |
42 height: 128 |
|
43 source: "qrc:/res/iconTime.png" |
70 source: "qrc:/res/iconTime.png" |
|
71 fillMode: Image.PreserveAspectFit |
44 cache: false |
72 cache: false |
|
73 } |
45 } |
74 } |
46 |
75 } |
|
76 /* |
47 GameView { |
77 GameView { |
48 id: item1 |
78 id: item1 |
49 x: 8 |
79 x: 8 |
50 y: 154 |
80 y: 154 |
51 width: 1008 |
81 width: 1008 |
52 height: 638 |
82 height: 638 |
53 } |
83 } |
|
84 */ |
54 } |
85 } |