mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: remove enableToolbar() signal
When showing the "empty-state", the profile toolbar was disabled. This was done via a "reverse" signal from the profile to the MainWindow. Instead control the toolbar in the MainWindow directly. Break out the plot-dive functionality into a member function and there test whether a dive is shown or not. The signal makes no sense in the context of mobile or printing. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8c72ac6b9b
commit
8939b6a99b
4 changed files with 12 additions and 9 deletions
|
@ -1064,7 +1064,6 @@ void ProfileWidget2::setEmptyState()
|
|||
setBackgroundBrush(getColor(::BACKGROUND, isGrayscale));
|
||||
dataModel->clear();
|
||||
currentState = EMPTY;
|
||||
emit enableToolbar(false);
|
||||
|
||||
fixBackgroundPos();
|
||||
background->setVisible(true);
|
||||
|
@ -1128,7 +1127,6 @@ void ProfileWidget2::setProfileState()
|
|||
/* show the same stuff that the profile shows. */
|
||||
|
||||
currentState = PROFILE;
|
||||
emit enableToolbar(true);
|
||||
setBackgroundBrush(getColor(::BACKGROUND, isGrayscale));
|
||||
|
||||
background->setVisible(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue