Mobile Pages

Currently the page experienc on mobile is suboptimal as back gestures do not work and the startup behaviour is not ideal.

This reworks it so that pages are now pushed as a layer on mobile and at startup only a saved space is restored. It is also setup so that on mobile you'll never see a blank room page (like when you select friends or home).
This commit is contained in:
James Graham
2024-10-15 16:13:02 +00:00
parent cc50e76c0d
commit 365af2cd6c
3 changed files with 49 additions and 8 deletions

View File

@@ -252,6 +252,11 @@ public:
*/
void setConnection(NeoChatConnection *connection);
/**
* @brief Clear the current room.
*/
Q_INVOKABLE void clearCurrentRoom();
/**
* Closes the current room and space; for situations, where it is unclear which room should be opened.
*/
@@ -344,6 +349,8 @@ Q_SIGNALS:
void currentSpaceChanged();
private:
bool m_isMobile = false;
void openRoomForActiveConnection();
/** The room currently being shown in the main view (RoomPage.qml). This can be null, if there is no room.