From a35fcf493a422b9cd83f2e2c0d95c38d07b304c5 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 1 Nov 2021 18:59:06 +0100 Subject: [PATCH] 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. --- resources/qml/Preferences/Materials/MaterialsSyncDialog.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml index f3555d5fd4..ebefdeb430 100644 --- a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml +++ b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml @@ -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") } }