diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-22 17:51:30 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-22 17:51:30 +0900 |
commit | e223f0384627ef690fd7125ed07d3ba172593430 (patch) | |
tree | 8518a02562289a1236d35f68b845d78ea6e91197 /lib/room.cpp | |
parent | 34c52daab6997a0df216d41289db55ecb727860c (diff) | |
parent | 04d463a4347f54e66687a99fbc906923e50bcad1 (diff) | |
download | libquotient-e223f0384627ef690fd7125ed07d3ba172593430.tar.gz libquotient-e223f0384627ef690fd7125ed07d3ba172593430.zip |
Merge pull request #223 from encombhat/master
Expose Room::addTag() and Room::removeTag() to QML
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index 01a88f89..1668fdb7 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -684,6 +684,11 @@ void Room::addTag(const QString& name, const TagRecord& record) d->broadcastTagUpdates(); } +void Room::addTag(const QString& name, const QString& order) +{ + addTag(name, TagRecord{order}); +} + void Room::removeTag(const QString& name) { if (!d->tags.contains(name)) |