From 7dde9b25d84317288cec6fbda97b43c445954df2 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 2 May 2016 14:17:08 +0200 Subject: Don't wrap labels if the text in every column can wrap anywhre, we don't have a stable way to know how large the columns themselves may be. This can cause an infinite recursion while trying to figure out the width of the items, as the sizeHint(Qt::ImplicitSize) of those labels (Buddy, Cylinder etc) will not be stable as it will once return the size of the text wrapped and once the size of the text not wrapped. Signed-off-by: Marco Martin Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetailsView.qml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml index f7b2980cc..04121cacc 100644 --- a/mobile-widgets/qml/DiveDetailsView.qml +++ b/mobile-widgets/qml/DiveDetailsView.qml @@ -174,7 +174,6 @@ Item { Kirigami.Label { text: "Cylinder:" - wrapMode: Text.WrapAtWordBoundaryOrAnywhere opacity: 0.6 Layout.maximumWidth: detailsView.col1Width Layout.preferredWidth: detailsView.col1Width @@ -222,7 +221,6 @@ Item { Kirigami.Label { text: "Weight:" - wrapMode: Text.WrapAtWordBoundaryOrAnywhere opacity: 0.6 Layout.maximumWidth: detailsView.col3Width Layout.preferredWidth: detailsView.col3Width @@ -252,7 +250,6 @@ Item { Kirigami.Label { text: "Buddy:" - wrapMode: Text.WrapAtWordBoundaryOrAnywhere opacity: 0.6 Layout.maximumWidth: detailsView.col1Width Layout.preferredWidth: detailsView.col1Width @@ -268,7 +265,6 @@ Item { Kirigami.Label { text: "SAC:" - wrapMode: Text.WrapAtWordBoundaryOrAnywhere opacity: 0.6 Layout.maximumWidth: detailsView.col3Width Layout.preferredWidth: detailsView.col3Width -- cgit v1.2.3-70-g09d2