]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
add a couple missing role names for the Qt user model
authorMichael Terry <michael.terry@canonical.com>
Wed, 6 Feb 2013 21:32:14 +0000 (16:32 -0500)
committerMichael Terry <michael.terry@canonical.com>
Wed, 6 Feb 2013 21:32:14 +0000 (16:32 -0500)
liblightdm-qt/usersmodel.cpp

index 6dbcebab4f727513366d2070c0b0acc7b8fc784f..8bb09a5b1e343f3613899a24a29a93d66126acd9 100644 (file)
@@ -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";