summaryrefslogtreecommitdiff
path: root/liblightdm-qt
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2013-02-06 16:32:14 -0500
committerMichael Terry <michael.terry@canonical.com>2013-02-06 16:32:14 -0500
commit4c99ce025230deb511e9d53ab970c935b9a2b435 (patch)
treeeb6d640032c39a3e847603b7df748fb5b1e5609b /liblightdm-qt
parentc9d9437b5d804dcec27337bc5fa6c40d23f719df (diff)
downloadlightdm-git-4c99ce025230deb511e9d53ab970c935b9a2b435.tar.gz
add a couple missing role names for the Qt user model
Diffstat (limited to 'liblightdm-qt')
-rw-r--r--liblightdm-qt/usersmodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/liblightdm-qt/usersmodel.cpp b/liblightdm-qt/usersmodel.cpp
index 6dbcebab..8bb09a5b 100644
--- a/liblightdm-qt/usersmodel.cpp
+++ b/liblightdm-qt/usersmodel.cpp
@@ -182,7 +182,9 @@ UsersModel::UsersModel(QObject *parent) :
// Extend roleNames (we want to keep the "display" role)
QHash<int, QByteArray> roles = roleNames();
roles[NameRole] = "name";
+ roles[RealNameRole] = "realName";
roles[LoggedInRole] = "loggedIn";
+ roles[BackgroundRole] = "background";
roles[SessionRole] = "session";
roles[HasMessagesRole] = "hasMessages";
roles[ImagePathRole] = "imagePath";