Debian Codegraph @

plugins/CuraDrive/src/qml/components/BackupList.qml

raw
1 // Copyright (c) 2022 Ultimaker B.V.
2 // Cura is released under the terms of the LGPLv3 or higher.
3
4 import QtQuick 2.7
5 import QtQuick.Controls 2.2
6 import QtQuick.Layouts 1.3
7
8 import UM 1.5 as UM
9
10 ListView
11 {
12 clip: true
13 ScrollBar.vertical: UM.ScrollBar {}
14
15 delegate: Item
16 {
17 // Add a margin, otherwise the scrollbar is on top of the right most component
18 width: parent.width - UM.Theme.getSize("scrollbar").width
19 height: childrenRect.height
20
21 BackupListItem
22 {
23 id: backupListItem
24 width: parent.width
25 }
26
27 Rectangle
28 {
29 id: divider
30 color: UM.Theme.getColor("lining")
31 height: UM.Theme.getSize("default_lining").height
32 }
33 }
34 }