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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user