summaryrefslogtreecommitdiffstats
path: root/components/UserList.qml
diff options
context:
space:
mode:
authorPapoteur <yves.brungard_mageia@gadz.org>2022-08-31 20:15:37 +0200
committerPapoteur <yves.brungard_mageia@gadz.org>2022-08-31 20:15:37 +0200
commitc3bb39f229423114f81d79b76a07a9115ca65b03 (patch)
treeb8bb135a9a0997acb7ee694f619ba857432565d7 /components/UserList.qml
parent166238c8b718e7ceb4c1647adad35755465ffeed (diff)
downloadmageia-sddm-master.tar
mageia-sddm-master.tar.gz
mageia-sddm-master.tar.bz2
mageia-sddm-master.tar.xz
mageia-sddm-master.zip
Sync theme with Plasma oneHEADmaster
Diffstat (limited to 'components/UserList.qml')
-rw-r--r--components/UserList.qml30
1 files changed, 10 insertions, 20 deletions
diff --git a/components/UserList.qml b/components/UserList.qml
index dbac102..1f612ec 100644
--- a/components/UserList.qml
+++ b/components/UserList.qml
@@ -1,21 +1,8 @@
/*
- * Copyright 2014 David Edmundson <davidedmundson@kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Library General Public License as
- * published by the Free Software Foundation; either version 2 or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
+ SPDX-FileCopyrightText: 2014 David Edmundson <davidedmundson@kde.org>
+
+ SPDX-License-Identifier: LGPL-2.0-or-later
+*/
import QtQuick 2.2
import org.kde.plasma.core 2.0 as PlasmaCore
@@ -23,8 +10,9 @@ import org.kde.plasma.core 2.0 as PlasmaCore
ListView {
id: view
readonly property string selectedUser: currentItem ? currentItem.userName : ""
- readonly property int userItemWidth: units.gridUnit * 8
- readonly property int userItemHeight: units.gridUnit * 8
+ readonly property int userItemWidth: PlasmaCore.Units.gridUnit * 8
+ readonly property int userItemHeight: PlasmaCore.Units.gridUnit * 8
+ readonly property bool constrainText: count > 1
property int fontSize: PlasmaCore.Theme.defaultFont.pointSize + 2
implicitHeight: userItemHeight
@@ -50,6 +38,8 @@ ListView {
avatarPath: model.icon || ""
iconSource: model.iconName || "user-identity"
fontSize: view.fontSize
+ vtNumber: model.vtNumber
+ needsPassword: model.needsPassword
name: {
var displayName = model.realName || model.name
@@ -83,7 +73,7 @@ ListView {
height: userItemHeight
//if we only have one delegate, we don't need to clip the text as it won't be overlapping with anything
- constrainText: ListView.view.count > 1
+ constrainText: view.constrainText
isCurrent: ListView.isCurrentItem