mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: factor out updating of visibility from setProfileState()
The plan is to simplify the visibility-control of non-interactive chart features. As a first step identify those features that depend on preferences-flags and factor out the setting of their visibility into a new function updateVisibility(). This commit effectively only reorders the setting of the visibility and therefore should have not user-visible effect. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
80fe85067c
commit
cab179601f
2 changed files with 34 additions and 34 deletions
|
@ -127,6 +127,7 @@ slots: // Necessary to call from QAction's signals.
|
|||
private:
|
||||
void setProfileState(); // keep currently displayed dive
|
||||
void updateAxes(); // Update axes according to preferences
|
||||
void updateVisibility(); // Update visibility of non-interactive chart features according to preferences
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
void wheelEvent(QWheelEvent *event) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue