mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Make the backupList use a scrollview instead of manually re-doing it
CURA-6005
This commit is contained in:
parent
31156d6230
commit
8ebd4282fd
1 changed files with 19 additions and 16 deletions
|
@ -2,32 +2,35 @@
|
|||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.1
|
||||
import QtQuick.Controls 2.2
|
||||
import QtQuick.Layouts 1.3
|
||||
|
||||
import UM 1.1 as UM
|
||||
|
||||
ListView
|
||||
ScrollView
|
||||
{
|
||||
id: backupList
|
||||
property alias model: backupList.model
|
||||
width: parent.width
|
||||
clip: true
|
||||
delegate: Item
|
||||
ListView
|
||||
{
|
||||
id: backupList
|
||||
width: parent.width
|
||||
height: childrenRect.height
|
||||
|
||||
BackupListItem
|
||||
{
|
||||
id: backupListItem
|
||||
width: parent.width - UM.Theme.getSize("default_margin").width // Add a margin, otherwise the scrollbar is be on top of the right most component
|
||||
}
|
||||
|
||||
Divider
|
||||
delegate: Item
|
||||
{
|
||||
width: parent.width
|
||||
anchors.top: backupListItem.bottom
|
||||
height: childrenRect.height
|
||||
|
||||
BackupListItem
|
||||
{
|
||||
id: backupListItem
|
||||
width: parent.width
|
||||
}
|
||||
|
||||
Divider
|
||||
{
|
||||
width: parent.width
|
||||
anchors.top: backupListItem.bottom
|
||||
}
|
||||
}
|
||||
}
|
||||
ScrollBar.vertical: RightSideScrollBar {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue