Commit 9fa48bc5 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Nate Graham
Browse files

kcms/feedback: Properly fit the items inside the layout

Have horizontal items fit the layout's width, don't set an arbitrary
minimum width to the slider.

BUG: 455713


(cherry picked from commit b7c559e3)
parent 93416bb2
Pipeline #194197 passed with stage
in 12 minutes and 25 seconds
......@@ -77,7 +77,6 @@ SimpleKCM {
Kirigami.FormData.label: i18n("Plasma:")
readonly property var currentMode: modeOptions[value]
Layout.fillWidth: true
Layout.minimumWidth: Kirigami.Units.gridUnit * 21
Layout.maximumWidth: Kirigami.Units.gridUnit * 21
readonly property var modeOptions: [UserFeedback.Provider.NoTelemetry, UserFeedback.Provider.BasicSystemInformation, UserFeedback.Provider.BasicUsageStatistics,
......@@ -114,6 +113,7 @@ SimpleKCM {
}
Kirigami.Heading {
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
Layout.maximumWidth: Kirigami.Units.gridUnit * 21
wrapMode: Text.WordWrap
......@@ -124,6 +124,7 @@ SimpleKCM {
Kirigami.FormData.isSection: true
}
QQC2.Label {
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
Layout.maximumWidth: Kirigami.Units.gridUnit * 21
wrapMode: Text.WordWrap
......@@ -138,6 +139,7 @@ SimpleKCM {
delegate: QQC2.Label {
visible: modelData.mode <= statisticsModeSlider.currentMode
text: "· " + modelData.description
Layout.fillWidth: true
MouseArea {
anchors.fill: parent
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment