summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Marco Martin <notmart@gmail.com>2016-05-02 14:17:08 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-05-02 07:13:10 -0700
commit7dde9b25d84317288cec6fbda97b43c445954df2 (patch)
tree7887c2ab405439ca99e0f01ce5c933b081ddc971 /mobile-widgets
parent8f35b7324e7ee053711363791a660bd279b81cc7 (diff)
downloadsubsurface-7dde9b25d84317288cec6fbda97b43c445954df2.tar.gz
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 <notmart@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveDetailsView.qml4
1 files changed, 0 insertions, 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