Warning, /plasma/kdeplasma-addons/applets/userswitcher/package/contents/ui/UserListDelegate.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2022 ivan (@ratijas) tkachenko <me@ratijas.tk> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 0008 import QtQml 0009 0010 import org.kde.config as KConfig 0011 import org.kde.kcmutils as KCMUtils 0012 import org.kde.kirigami as Kirigami 0013 import org.kde.kirigamiaddons.components as KirigamiComponents 0014 0015 ListDelegate { 0016 id: item 0017 0018 property alias source: avatar.source 0019 0020 iconItem: KirigamiComponents.AvatarButton { 0021 id: avatar 0022 0023 anchors.fill: parent 0024 0025 name: item.text 0026 0027 // don't block mouse hover from the underlying ListView highlight 0028 enabled: KConfig.KAuthorized.authorizeControlModule("kcm_users") 0029 0030 onClicked: KCMUtils.KCMLauncher.openSystemSettings("kcm_users") 0031 } 0032 }