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
wilder-5.26
Aleix Pol 4 years ago
parent 8b1d83ff33
commit b7c559e364
  1. 4
      kcms/feedback/package/contents/ui/main.qml

@ -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

Loading…
Cancel
Save