aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/room.cpp2
-rw-r--r--lib/room.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index c6d63ce7..7c45bf89 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -721,7 +721,7 @@ void Room::addTag(const QString& name, const TagRecord& record)
checkRes.second, record.order);
}
-void Room::addTag(const QString& name, TagRecord::order_type order)
+void Room::addTag(const QString& name, float order)
{
addTag(name, TagRecord{order});
}
diff --git a/lib/room.h b/lib/room.h
index 5ad8b2cf..f1566ac5 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -262,8 +262,7 @@ namespace QMatrixClient
* clients.
*/
void addTag(const QString& name, const TagRecord& record = {});
- Q_INVOKABLE void addTag(const QString& name,
- TagRecord::order_type order);
+ Q_INVOKABLE void addTag(const QString& name, float order);
/// Remove a tag from the room
Q_INVOKABLE void removeTag(const QString& name);