blob: 6e41891d63cee0deb4084bc12478377cc69431a1 (
plain)
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
|
import QtQuick 2.0
ListView {
model: maps
delegate: Rectangle {
height: 64
color: "#ff0000"
radius: 2
border.width: 1
Image {
id: image1
height: parent.height - 4;
source : active ? "icons/appbar.layer.svg" : "icons/appbar.layer.delete.svg"
opacity: active ? 1 : 0.4
}
Text {
text: name
color: "#ffffff"
anchors.verticalCenter: parent.verticalCenter
anchors.left: image1.right
anchors.leftMargin: 8
}
MouseArea{
anchors.fill: parent
hoverEnabled: true
onEntered: {
// backend.list_maps(1)
}
}
}
Component.onCompleted: backend.list_maps(0)
}
|