mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
desktop: don't allow view change in planner
When in planner mode, don't allow the user to change the application state. This brought us nothing but troubles and inconsistencies. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1ed2f1681a
commit
8a36a100ce
2 changed files with 54 additions and 25 deletions
|
@ -205,6 +205,7 @@ private:
|
|||
};
|
||||
|
||||
struct Quadrants {
|
||||
bool allowUserChange; // Allow the user to change away from this state
|
||||
Quadrant topLeft;
|
||||
Quadrant topRight;
|
||||
Quadrant bottomLeft;
|
||||
|
@ -213,6 +214,7 @@ private:
|
|||
|
||||
Quadrants applicationState[(size_t)ApplicationState::Count];
|
||||
static void addWidgets(const Quadrant &);
|
||||
bool userMayChangeAppState() const;
|
||||
void setQuadrantWidget(const Quadrant &q, QSplitter *splitter);
|
||||
void registerApplicationState(ApplicationState state, Quadrants q);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue