[plasma/plasma-workspace] lookandfeel/components: sessionmanagementscreen: support adding an authentication type selector

Harald Sitter <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit d5826776349a182de1ca277925770bd5bf22cfcb by Harald Sitter.
Committed on 18/08/2026 at 11:16.
Pushed by sitter into branch 'master'.

sessionmanagementscreen: support adding an authentication type selector

or really inject anything above the notificationsLabel :D

useful for letting the user select which auth type (face, smart card...)
they want to use

M  +16   -0    lookandfeel/components/SessionManagementScreen.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/d5826776349a182de1ca277925770bd5bf22cfcb

diff --git a/lookandfeel/components/SessionManagementScreen.qml b/lookandfeel/components/SessionManagementScreen.qml
index 9cdad309ee..3e72f2e82d 100644
--- a/lookandfeel/components/SessionManagementScreen.qml
+++ b/lookandfeel/components/SessionManagementScreen.qml
@@ -60,6 +60,11 @@ FocusScope {
 
     property real fontSize: Kirigami.Theme.defaultFont.pointSize + 2
 
+    /*
+     * The item used to indicate the type of authentication required, e.g. a password or fingerprint icon.
+     */
+    property Item authenticationTypeItem: null
+
     default property alias _children: innerLayout.children
 
     signal userSelected()
@@ -98,6 +103,17 @@ FocusScope {
         anchors.left: parent.left
         anchors.right: parent.right
         anchors.bottom: parent.bottom
+
+        RowLayout {
+            Layout.maximumWidth: Kirigami.Units.gridUnit * 16
+            Layout.alignment: Qt.AlignHCenter
+            Layout.fillWidth: true
+            Layout.fillHeight: false
+            Layout.topMargin: Kirigami.Units.largeSpacing
+            spacing: 0
+            children: [root.authenticationTypeItem]
+        }
+
         PlasmaComponents3.Label {
             id: notificationsLabel
             font.pointSize: root.fontSize
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.