equal
deleted
inserted
replaced
6 Column { |
6 Column { |
7 spacing: 8 |
7 spacing: 8 |
8 |
8 |
9 HWButton { |
9 HWButton { |
10 id: btnPreview |
10 id: btnPreview |
11 width: 256 |
11 // this, as well as the positions of images, seems to have the border thickness (3px) into account |
12 height: 128 |
12 width: 262 |
|
13 height: 134 |
13 |
14 |
14 onClicked: HWEngine.getPreview() |
15 onClicked: HWEngine.getPreview() |
15 |
16 |
16 Connections { |
17 Connections { |
17 target: HWEngine |
18 target: HWEngine |
18 onPreviewImageChanged: previewImage.source = "image://preview/image" |
19 onPreviewImageChanged: { |
19 onPreviewIsRendering: previewImage.source = "qrc:/res/iconTime.png" |
20 previewImage.visible = true |
|
21 previewImage.source = "image://preview/image" |
|
22 previewWaitImage.visible = false |
|
23 } |
|
24 onPreviewIsRendering: { |
|
25 previewImage.source = "" |
|
26 previewImage.visible = false |
|
27 previewWaitImage.visible = true |
|
28 } |
|
29 } |
|
30 |
|
31 Image { |
|
32 id: previewBackground |
|
33 x: 3 |
|
34 y: 3 |
|
35 width: 256 |
|
36 height: 128 |
|
37 cache: true |
|
38 source: "qrc:/res/prevBg.png" |
20 } |
39 } |
21 |
40 |
22 Image { |
41 Image { |
23 id: previewImage |
42 id: previewImage |
24 x: 0 |
43 x: 3 |
25 y: 0 |
44 y: 3 |
26 width: 256 |
45 width: 256 |
27 height: 128 |
46 height: 128 |
28 cache: false |
47 cache: false |
|
48 source: "" |
|
49 } |
|
50 |
|
51 Image { |
|
52 id: previewWaitImage |
|
53 x: 117 |
|
54 y: 53 |
|
55 width: 26 |
|
56 height: 26 |
|
57 cache: true |
29 source: "qrc:/res/iconTime.png" |
58 source: "qrc:/res/iconTime.png" |
30 } |
59 } |
31 } |
60 } |
32 |
61 |
33 HWComboBox { |
62 HWComboBox { |