mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-21 05:46:45 +08:00
Use new ScrollBar for material sync dialogue
Contributes to issue CURA-8686.
This commit is contained in:
parent
52f5b91621
commit
4d9039288b
@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2021 Ultimaker B.V.
|
//Copyright (c) 2022 Ultimaker B.V.
|
||||||
//Cura is released under the terms of the LGPLv3 or higher.
|
//Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.15
|
import QtQuick 2.15
|
||||||
@ -253,19 +253,18 @@ Window
|
|||||||
onClicked: Qt.openUrlExternally("https://support.ultimaker.com/hc/en-us/articles/360012019239?utm_source=cura&utm_medium=software&utm_campaign=sync-material-wizard-troubleshoot-cloud-printer")
|
onClicked: Qt.openUrlExternally("https://support.ultimaker.com/hc/en-us/articles/360012019239?utm_source=cura&utm_medium=software&utm_campaign=sync-material-wizard-troubleshoot-cloud-printer")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ScrollView
|
|
||||||
{
|
|
||||||
id: printerListScrollView
|
|
||||||
width: parent.width
|
|
||||||
Layout.preferredWidth: width
|
|
||||||
Layout.fillHeight: true
|
|
||||||
clip: true
|
|
||||||
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
|
||||||
|
|
||||||
ListView
|
ListView
|
||||||
{
|
{
|
||||||
id: printerList
|
id: printerList
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
Layout.preferredWidth: width
|
||||||
|
Layout.fillHeight: true
|
||||||
|
|
||||||
|
clip: true
|
||||||
|
ScrollBar.vertical: UM.ScrollBar
|
||||||
|
{
|
||||||
|
id: printerListScrollBar
|
||||||
|
}
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
|
|
||||||
model: cloudPrinterList
|
model: cloudPrinterList
|
||||||
@ -275,7 +274,7 @@ Window
|
|||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.color: UM.Theme.getColor("lining")
|
border.color: UM.Theme.getColor("lining")
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
border.width: UM.Theme.getSize("default_lining").width
|
||||||
width: printerListScrollView.width
|
width: printerList.width - printerListScrollBar.width
|
||||||
height: UM.Theme.getSize("card").height
|
height: UM.Theme.getSize("card").height
|
||||||
|
|
||||||
property string syncStatus:
|
property string syncStatus:
|
||||||
@ -373,7 +372,7 @@ Window
|
|||||||
|
|
||||||
footer: Item
|
footer: Item
|
||||||
{
|
{
|
||||||
width: printerListScrollView.width
|
width: printerList.width - printerListScrollBar
|
||||||
height: {
|
height: {
|
||||||
if(!visible)
|
if(!visible)
|
||||||
{
|
{
|
||||||
@ -455,7 +454,6 @@ Window
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
Loading…
x
Reference in New Issue
Block a user