Allow word wrapping for error message

This prevents being able to align the text vertically with the troubleshooting button though. The text may become the larger of the two, in which case the text should be leading the height. Qt can do this with a Layout, however it then can't automatically adjust the width of the layout there since that would create a polish loop in the layout.

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-11-01 18:59:06 +01:00
parent 67cae04a24
commit a35fcf493a
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -242,8 +242,8 @@ Window
id: syncStatusLabel
width: parent.width - UM.Theme.getSize("default_margin").width - troubleshootingLink.width
anchors.verticalCenter: troubleshootingLink.verticalCenter
wrapMode: Text.Wrap
elide: Text.ElideRight
visible: text !== ""
text: ""
@ -256,7 +256,6 @@ Window
text: catalog.i18nc("@button", "Troubleshooting")
visible: typeof syncModel !== "undefined" && syncModel.exportUploadStatus == "error"
iconSource: UM.Theme.getIcon("LinkExternal")
Layout.preferredHeight: height
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")
}
}