Fix text wrapping with giant error messages

This commit is contained in:
Cameron Gutman 2019-04-01 18:31:13 -07:00
parent e88d2f0ab2
commit c383cd39f4

View file

@ -35,11 +35,13 @@ NavigableDialog {
id: dialogLabel
text: dialogText + ((helpText && (standardButtons & Dialog.Help)) ? (helpTextSeparator + helpText) : "")
wrapMode: Text.WordWrap
wrapMode: Text.Wrap
elide: Label.ElideRight
// Cap the width so the dialog doesn't grow horizontally forever. This
// will cause word wrap to kick in.
Layout.maximumWidth: 400
Layout.maximumHeight: 400
Keys.onReturnPressed: {
accept()