Commit c3fa9734 authored by Nate Graham's avatar Nate Graham
Browse files

kcms/componentchooser: unify combobox lengths

Otherwise the comboboxes have different lengths, making the presentation
kind of ragged-looking.

(cherry picked from commit 81ff6aa5)

BUG: 451365
FIXED-IN: 5.24.4
parent 220618d2
Pipeline #154129 passed with stage
in 2 minutes and 57 seconds
......@@ -5,13 +5,27 @@
*/
import QtQuick 2.12
import QtQuick.Layouts 1.15
import org.kde.kirigami 2.7 as Kirigami
import org.kde.kcm 1.5 as KCM
KCM.SimpleKCM {
Kirigami.FormLayout {
id: form
readonly property int longestComboBox: Math.max(browserCombo.implicitWidth,
fileManagerCombo.implicitWidth,
emailCombo.implicitWidth,
terminalCombo.implicitWidth,
mapCombo.implicitWidth,
dialerCombo.implicitWidth)
ComponentComboBox {
id: browserCombo
Layout.preferredWidth: form.longestComboBox
component: kcm.browsers
label: i18n("Web browser:")
......@@ -20,6 +34,10 @@ KCM.SimpleKCM {
}
}
ComponentComboBox {
id: fileManagerCombo
Layout.preferredWidth: form.longestComboBox
component: kcm.fileManagers
label: i18n("File manager:")
......@@ -28,6 +46,10 @@ KCM.SimpleKCM {
}
}
ComponentComboBox {
id: emailCombo
Layout.preferredWidth: form.longestComboBox
component: kcm.emailClients
label: i18n("Email client:")
......@@ -36,6 +58,10 @@ KCM.SimpleKCM {
}
}
ComponentComboBox {
id: terminalCombo
Layout.preferredWidth: form.longestComboBox
component: kcm.terminalEmulators
label: i18n("Terminal emulator:")
......@@ -44,6 +70,10 @@ KCM.SimpleKCM {
}
}
ComponentComboBox {
id: mapCombo
Layout.preferredWidth: form.longestComboBox
component: kcm.geoUriHandlers
label: i18n("Map:")
......@@ -52,6 +82,10 @@ KCM.SimpleKCM {
}
}
ComponentComboBox {
id: dialerCombo
Layout.preferredWidth: form.longestComboBox
component: kcm.telUriHandlers
label: i18nc("Default phone app", "Dialer:")
......
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