diff options
author | Black Hat <bhat@encom.eu.org> | 2018-07-21 21:37:21 +0800 |
---|---|---|
committer | Black Hat <bhat@encom.eu.org> | 2018-07-21 21:37:21 +0800 |
commit | 287eccb4b7f88a52cd191ae208009335fca7e907 (patch) | |
tree | 53d916caead118ff9a6d67b9a392b0377725196b | |
parent | b7586ded8583f75edab227cf810a32b9a440cabc (diff) | |
download | libquotient-287eccb4b7f88a52cd191ae208009335fca7e907.tar.gz libquotient-287eccb4b7f88a52cd191ae208009335fca7e907.zip |
Overload Room:addTag.
-rw-r--r-- | lib/room.cpp | 5 | ||||
-rw-r--r-- | lib/room.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index 01a88f89..4330cddc 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, int order) +{ + addTag(name, TagRecord{order}); +} + void Room::removeTag(const QString& name) { if (!d->tags.contains(name)) @@ -300,7 +300,8 @@ namespace QMatrixClient * of tags and the new set is sent to the server to update other * clients. */ - Q_INVOKABLE void addTag(const QString& name, const TagRecord& record = {}); + void addTag(const QString& name, const TagRecord& record = {}); + Q_INVOKABLE void addTag(const QString& name, int order); /** Remove a tag from the room */ Q_INVOKABLE void removeTag(const QString& name); |