-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainZone.qml
More file actions
84 lines (71 loc) · 1.64 KB
/
MainZone.qml
File metadata and controls
84 lines (71 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.3
import QtQuick.Dialogs 1.2
import My 1.0
Item {
id: mainZone
property alias image: mainImage
property alias preprocessedImage: processedImage
property alias slides: slides
width: 500
height: 500
Item {
id: topIamges
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: slides.top
anchors.rightMargin: 0
ImagePanel {
id: mainImage
width: parent.width / 2
objectName: "mainImage"
anchors.left: parent.left
anchors.top: parent.top
anchors.bottom: parent.bottom
}
Item
{
id: prepImg
anchors.left: mainImage.right
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
ImageItem {
id: processedImage
anchors.fill: prepImg
// anchors.left: mainImage.right
// anchors.right: parent.right
// anchors.top: parent.top
// anchors.bottom: parent.top
MouseArea {
id: selectionMouseArea
property int initialXPos
property int initialYPos
property bool justStarted
anchors.fill: parent
z: 2 // make sure we're above other elements
onPressed: {
if (mouse.button == Qt.LeftButton) {
console.log("Mouse area shift-clicked !")
backend.click(mouse.x, mouse.y, slides.extra)
}
}
}
}
}
}
SliderPanel {
id: slides
image: processedImage
height: 60
border.color: "#1e009d"
objectName: "sliderPanel"
anchors.top: mainImage.topIamges
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
}
}