diff options
author | Michael Terry <michael.terry@canonical.com> | 2013-02-07 09:24:11 -0500 |
---|---|---|
committer | Michael Terry <michael.terry@canonical.com> | 2013-02-07 09:24:11 -0500 |
commit | f146b87cabe0404fa7551b3f97c9e37b7c30d484 (patch) | |
tree | 63417da4b97aa22349672cc85924b5bc985857af | |
parent | c9d9437b5d804dcec27337bc5fa6c40d23f719df (diff) | |
parent | 4c99ce025230deb511e9d53ab970c935b9a2b435 (diff) | |
download | lightdm-f146b87cabe0404fa7551b3f97c9e37b7c30d484.tar.gz |
QLightDM: Add some missing role names in UsersModel
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | liblightdm-qt/usersmodel.cpp | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -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"; |