Fix some properties
Properties with READ and WRITE need to NOTIFY
This commit is contained in:
@@ -92,12 +92,12 @@ class RoomManager : public QObject, public UriResolverBase
|
||||
/**
|
||||
* @brief The room ID of the last space entered.
|
||||
*/
|
||||
Q_PROPERTY(QString lastSpaceId READ lastSpaceId WRITE setLastSpaceId CONSTANT)
|
||||
Q_PROPERTY(QString lastSpaceId READ lastSpaceId WRITE setLastSpaceId NOTIFY directChatsActiveChanged)
|
||||
|
||||
/**
|
||||
* @brief Whether the last SpaceDrawer category selected was direct chats.
|
||||
*/
|
||||
Q_PROPERTY(bool directChatsActive READ directChatsActive WRITE setDirectChatsActive CONSTANT)
|
||||
Q_PROPERTY(bool directChatsActive READ directChatsActive WRITE setDirectChatsActive NOTIFY directChatsActiveChanged)
|
||||
|
||||
/**
|
||||
* @brief The ChatDocumentHandler for the open room.
|
||||
@@ -334,6 +334,9 @@ Q_SIGNALS:
|
||||
|
||||
void connectionChanged();
|
||||
|
||||
void directChatsActiveChanged();
|
||||
void lastSpaceIdChanged();
|
||||
|
||||
private:
|
||||
void openRoomForActiveConnection();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user