From 04d463a4347f54e66687a99fbc906923e50bcad1 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Sun, 22 Jul 2018 11:44:32 +0800 Subject: Change order data type. --- lib/room.cpp | 2 +- lib/room.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/room.cpp b/lib/room.cpp index 4330cddc..1668fdb7 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -684,7 +684,7 @@ void Room::addTag(const QString& name, const TagRecord& record) d->broadcastTagUpdates(); } -void Room::addTag(const QString &name, int order) +void Room::addTag(const QString& name, const QString& order) { addTag(name, TagRecord{order}); } diff --git a/lib/room.h b/lib/room.h index d148b9c7..e7f260dd 100644 --- a/lib/room.h +++ b/lib/room.h @@ -301,7 +301,7 @@ namespace QMatrixClient * clients. */ void addTag(const QString& name, const TagRecord& record = {}); - Q_INVOKABLE void addTag(const QString& name, int order); + Q_INVOKABLE void addTag(const QString& name, const QString& order); /** Remove a tag from the room */ Q_INVOKABLE void removeTag(const QString& name); -- cgit v1.2.3