[pim/itinerary/release/26.08] src/app: StopoverInformationSheet: Fix sizing of StopoverInformationView

Kai Uwe Broulik <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 8151f50707883d6660e7553cc67d654786f3f7f9 by Kai Uwe Broulik.
Committed on 27/07/2026 at 05:02.
Pushed by broulik into branch 'release/26.08'.

StopoverInformationSheet: Fix sizing of StopoverInformationView

Drop the Column since it would ignore "width" of its children
and the StopoverInformationView is the only child anyway.

This fixes word wrapping not taking any effect.


(cherry picked from commit 3b7aaf8e0d81e48c9c08f6336c28e63bbf4ac264)

Co-authored-by: Kai Uwe Broulik <[email protected]>

M  +41   -43   src/app/StopoverInformationSheet.qml

https://invent.kde.org/pim/itinerary/-/commit/8151f50707883d6660e7553cc67d654786f3f7f9

diff --git a/src/app/StopoverInformationSheet.qml b/src/app/StopoverInformationSheet.qml
index e6f4ac6c5..9ec88de7b 100644
--- a/src/app/StopoverInformationSheet.qml
+++ b/src/app/StopoverInformationSheet.qml
@@ -46,49 +46,47 @@ SheetDrawer {
         contentWidth: width - effectiveScrollBarWidth
         QQC2.ScrollBar.horizontal.policy: QQC2.ScrollBar.AlwaysOff
 
-        ColumnLayout {
-            KPublicTransport.StopoverInformationView {
-                width: infoPage.width - infoPage.effectiveScrollBarWidth
-                stopover: root.stopover
-                notes: root.notes
-
-                Kirigami.Heading {
-                    level: 4
-                    text: i18n("Statistics")
-
-                    Layout.leftMargin: Kirigami.Units.largeSpacing
-                }
-
-                QQC2.Label {
-                    text: i18n("Distance: %1", CoreAddons.Format.formatDistance(journeySection.distance, Settings.distanceFormat))
-                    visible: root.journeySection.distance > 0
-                    wrapMode: Text.Wrap
-
-                    Layout.topMargin: Kirigami.Units.largeSpacing
-                    Layout.leftMargin: Kirigami.Units.largeSpacing
-                    Layout.rightMargin: Kirigami.Units.largeSpacing
-                    Layout.fillWidth: true
-                }
-
-                QQC2.Label {
-                    text: i18n("Average Speed: %1", Localizer.formatSpeed(journeySection.distance / journeySection.duration * 3.6, Settings.distanceFormat))
-                    visible: journeySection.distance > 0 && journeySection.duration > 0
-                    wrapMode: Text.Wrap
-
-                    Layout.leftMargin: Kirigami.Units.largeSpacing
-                    Layout.rightMargin: Kirigami.Units.largeSpacing
-                    Layout.fillWidth: true
-                }
-
-                QQC2.Label {
-                    text: i18n("CO₂: %1", Localizer.formatWeight(journeySection.co2Emission))
-                    visible: journeySection.co2Emission > 0
-                    wrapMode: Text.Wrap
-
-                    Layout.leftMargin: Kirigami.Units.largeSpacing
-                    Layout.rightMargin: Kirigami.Units.largeSpacing
-                    Layout.fillWidth: true
-                }
+        KPublicTransport.StopoverInformationView {
+            width: infoPage.width - infoPage.effectiveScrollBarWidth
+            stopover: root.stopover
+            notes: root.notes
+
+            Kirigami.Heading {
+                level: 4
+                text: i18n("Statistics")
+
+                Layout.leftMargin: Kirigami.Units.largeSpacing
+            }
+
+            QQC2.Label {
+                text: i18n("Distance: %1", CoreAddons.Format.formatDistance(journeySection.distance, Settings.distanceFormat))
+                visible: root.journeySection.distance > 0
+                wrapMode: Text.Wrap
+
+                Layout.topMargin: Kirigami.Units.largeSpacing
+                Layout.leftMargin: Kirigami.Units.largeSpacing
+                Layout.rightMargin: Kirigami.Units.largeSpacing
+                Layout.fillWidth: true
+            }
+
+            QQC2.Label {
+                text: i18n("Average Speed: %1", Localizer.formatSpeed(journeySection.distance / journeySection.duration * 3.6, Settings.distanceFormat))
+                visible: journeySection.distance > 0 && journeySection.duration > 0
+                wrapMode: Text.Wrap
+
+                Layout.leftMargin: Kirigami.Units.largeSpacing
+                Layout.rightMargin: Kirigami.Units.largeSpacing
+                Layout.fillWidth: true
+            }
+
+            QQC2.Label {
+                text: i18n("CO₂: %1", Localizer.formatWeight(journeySection.co2Emission))
+                visible: journeySection.co2Emission > 0
+                wrapMode: Text.Wrap
+
+                Layout.leftMargin: Kirigami.Units.largeSpacing
+                Layout.rightMargin: Kirigami.Units.largeSpacing
+                Layout.fillWidth: true
             }
         }
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.