Warning, /plasma/kdeplasma-addons/applets/userswitcher/package/contents/ui/configGeneral.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Kai Uwe Broulik <kde@privat.broulik.de> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 import QtQuick 2.15 0008 import QtQuick.Controls 2.15 as QtControls 0009 0010 import org.kde.kirigami 2.20 as Kirigami 0011 import org.kde.kcmutils as KCM 0012 0013 KCM.SimpleKCM { 0014 property bool cfg_showFace 0015 property bool cfg_showName 0016 property bool cfg_showFullName 0017 property alias cfg_showTechnicalInfo: showTechnicalInfoCheck.checked 0018 0019 Kirigami.FormLayout { 0020 QtControls.ButtonGroup { 0021 id: nameGroup 0022 } 0023 0024 QtControls.RadioButton { 0025 id: showFullNameRadio 0026 0027 Kirigami.FormData.label: i18nc("@title:label", "Username style:") 0028 0029 QtControls.ButtonGroup.group: nameGroup 0030 text: i18nc("@option:radio", "Full name (if available)") 0031 checked: cfg_showFullName 0032 onClicked: if (checked) cfg_showFullName = true; 0033 } 0034 0035 QtControls.RadioButton { 0036 QtControls.ButtonGroup.group: nameGroup 0037 text: i18nc("@option:radio", "Login username") 0038 checked: !cfg_showFullName 0039 onClicked: if (checked) cfg_showFullName = false; 0040 } 0041 0042 0043 Item { 0044 Kirigami.FormData.isSection: true 0045 } 0046 0047 0048 QtControls.ButtonGroup { 0049 id: layoutGroup 0050 } 0051 0052 QtControls.RadioButton { 0053 id: showOnlyNameRadio 0054 0055 Kirigami.FormData.label: i18nc("@title:label", "Show:") 0056 0057 QtControls.ButtonGroup.group: layoutGroup 0058 text: i18nc("@option:radio", "Name") 0059 checked: cfg_showName && !cfg_showFace 0060 onClicked: { 0061 if (checked) { 0062 cfg_showName = true; 0063 cfg_showFace = false; 0064 } 0065 } 0066 } 0067 0068 QtControls.RadioButton { 0069 id: showOnlyFaceRadio 0070 0071 QtControls.ButtonGroup.group: layoutGroup 0072 text: i18nc("@option:radio", "User picture") 0073 checked: !cfg_showName && cfg_showFace 0074 onClicked: { 0075 if (checked) { 0076 cfg_showName = false; 0077 cfg_showFace = true; 0078 } 0079 } 0080 } 0081 0082 QtControls.RadioButton { 0083 id: showBothRadio 0084 0085 QtControls.ButtonGroup.group: layoutGroup 0086 text: i18nc("@option:radio", "Name and user picture") 0087 checked: cfg_showName && cfg_showFace 0088 onClicked: { 0089 if (checked) { 0090 cfg_showName = true; 0091 cfg_showFace = true; 0092 } 0093 } 0094 } 0095 0096 0097 Item { 0098 Kirigami.FormData.isSection: true 0099 } 0100 0101 0102 QtControls.CheckBox { 0103 id: showTechnicalInfoCheck 0104 0105 Kirigami.FormData.label: i18nc("@title:label", "Advanced:") 0106 0107 text: i18nc("@option:check", "Show technical session information") 0108 } 0109 } 0110 }