Re-order spaces by dragging and dropping

Title
This commit is contained in:
James Graham
2024-03-10 11:18:28 +00:00
parent 7654b83339
commit cc058a7cd3
6 changed files with 152 additions and 8 deletions

View File

@@ -560,7 +560,7 @@ public:
* Will fail if the user doesn't have the required privileges or this room is
* not a space.
*/
Q_INVOKABLE void addChild(const QString &childId, bool setChildParent = false, bool canonical = false, bool suggested = false);
Q_INVOKABLE void addChild(const QString &childId, bool setChildParent = false, bool canonical = false, bool suggested = false, const QString &order = {});
/**
* @brief Remove the given room as a child.
@@ -583,6 +583,8 @@ public:
*/
Q_INVOKABLE void toggleChildSuggested(const QString &childId);
void setChildOrder(const QString &childId, const QString &order = {});
bool isInvite() const;
bool readOnly() const;