QML UI: correctly wrap devinfo message

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-07-09 18:47:00 -07:00
parent 7b922a1f72
commit 6422932c61

View file

@ -170,6 +170,7 @@ Kirigami.Page {
}
}
Kirigami.Label {
Layout.maximumWidth: diveComputerDownloadWindow.width - Kirigami.Units.gridUnit * 2
text: divesDownloaded ? qsTr(" Downloaded dives") :
(manager.progressMessage != "" ? qsTr("Info:") + " " + manager.progressMessage : qsTr(" No dives"))
wrapMode: Text.WrapAtWordBoundaryOrAnywhere