summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2013-02-07 09:24:11 -0500
committerMichael Terry <michael.terry@canonical.com>2013-02-07 09:24:11 -0500
commitf146b87cabe0404fa7551b3f97c9e37b7c30d484 (patch)
tree63417da4b97aa22349672cc85924b5bc985857af
parentc9d9437b5d804dcec27337bc5fa6c40d23f719df (diff)
parent4c99ce025230deb511e9d53ab970c935b9a2b435 (diff)
downloadlightdm-f146b87cabe0404fa7551b3f97c9e37b7c30d484.tar.gz
QLightDM: Add some missing role names in UsersModel
-rw-r--r--NEWS4
-rw-r--r--liblightdm-qt/usersmodel.cpp2
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index dc069e7e..af0713ce 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+Overview of changes in lightdm 1.6.0
+
+ * QLightDM: Add some missing role names in UsersModel
+
Overview of changes in lightdm 1.5.0
* Add man page for lightdm-set-defaults
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";