From 6e80ef5b5776eb09f14b6815c2f4d6dbec69dffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Pla=CC=81s=CC=8Cil?= Date: Mon, 13 Feb 2017 18:26:33 +0800 Subject: Fix qmake compilation --- room.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'room.cpp') diff --git a/room.cpp b/room.cpp index 6c22b338..9d501556 100644 --- a/room.cpp +++ b/room.cpp @@ -24,6 +24,8 @@ #include #include // for efficient string concats (operator%) #include +#include +#include #include "connection.h" #include "state.h" -- cgit v1.2.3 From 67b75e13db0d9b201c92d74e829e45d043313be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Pla=CC=81s=CC=8Cil?= Date: Fri, 2 Jun 2017 11:18:15 +0800 Subject: Clean up --- room.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'room.cpp') diff --git a/room.cpp b/room.cpp index 9d501556..6c22b338 100644 --- a/room.cpp +++ b/room.cpp @@ -24,8 +24,6 @@ #include #include // for efficient string concats (operator%) #include -#include -#include #include "connection.h" #include "state.h" -- cgit v1.2.3 From 6aef84109f68e07d71432d5bb8437e33eaeed940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Pla=CC=81s=CC=8Cil?= Date: Mon, 13 Feb 2017 09:24:52 +0800 Subject: Add Room::memberNames() for nick completion in QML --- room.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'room.cpp') diff --git a/room.cpp b/room.cpp index 6c22b338..49517ab9 100644 --- a/room.cpp +++ b/room.cpp @@ -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()); -- cgit v1.2.3