diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-06-02 23:08:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-02 23:08:48 +0900 |
commit | 4e762cba7f03aa9074f8575892831d2498175553 (patch) | |
tree | 83fb9b5b21aa5ef8f3cf4631055850f9824d2946 /room.cpp | |
parent | 36dbba9c543b819aec526f18c33f1d95b0ee61c7 (diff) | |
parent | 6aef84109f68e07d71432d5bb8437e33eaeed940 (diff) | |
download | libquotient-4e762cba7f03aa9074f8575892831d2498175553.tar.gz libquotient-4e762cba7f03aa9074f8575892831d2498175553.zip |
Merge pull request #66 from Quiark/reorg
Expose userlist to QML
Diffstat (limited to 'room.cpp')
-rw-r--r-- | room.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -370,6 +370,16 @@ QList< User* > Room::users() const return d->membersMap.values(); } +QStringList Room::memberNames() const { + QStringList res; + + for (auto u : d->membersMap.values()) { + res.append( this->roomMembername(u) ); + } + + return res; +} + void Room::Private::insertMemberIntoMap(User *u) { auto namesakes = membersMap.values(u->name()); |