mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-14 19:25:53 +00:00
98 lines
2.6 KiB
QML
98 lines
2.6 KiB
QML
/*
|
|
SPDX-FileCopyrightText: 2020 Tobias Fella <fella@posteo.de>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
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:")
|
|
|
|
KCM.SettingHighlighter {
|
|
highlight: !kcm.browsers.isDefaults
|
|
}
|
|
}
|
|
ComponentComboBox {
|
|
id: fileManagerCombo
|
|
|
|
Layout.preferredWidth: form.longestComboBox
|
|
|
|
component: kcm.fileManagers
|
|
label: i18n("File manager:")
|
|
|
|
KCM.SettingHighlighter {
|
|
highlight: !kcm.fileManagers.isDefaults
|
|
}
|
|
}
|
|
ComponentComboBox {
|
|
id: emailCombo
|
|
|
|
Layout.preferredWidth: form.longestComboBox
|
|
|
|
component: kcm.emailClients
|
|
label: i18n("Email client:")
|
|
|
|
KCM.SettingHighlighter {
|
|
highlight: !kcm.emailClients.isDefaults
|
|
}
|
|
}
|
|
ComponentComboBox {
|
|
id: terminalCombo
|
|
|
|
Layout.preferredWidth: form.longestComboBox
|
|
|
|
component: kcm.terminalEmulators
|
|
label: i18n("Terminal emulator:")
|
|
|
|
KCM.SettingHighlighter {
|
|
highlight: !kcm.terminalEmulators.isDefaults
|
|
}
|
|
}
|
|
ComponentComboBox {
|
|
id: mapCombo
|
|
|
|
Layout.preferredWidth: form.longestComboBox
|
|
|
|
component: kcm.geoUriHandlers
|
|
label: i18n("Map:")
|
|
|
|
KCM.SettingHighlighter {
|
|
highlight: !kcm.geoUriHandlers.isDefaults
|
|
}
|
|
}
|
|
ComponentComboBox {
|
|
id: dialerCombo
|
|
|
|
Layout.preferredWidth: form.longestComboBox
|
|
|
|
component: kcm.telUriHandlers
|
|
label: i18nc("Default phone app", "Dialer:")
|
|
|
|
KCM.SettingHighlighter {
|
|
highlight: !kcm.telUriHandlers.isDefaults
|
|
}
|
|
}
|
|
}
|
|
}
|