summaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-04-09 22:28:54 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-10 14:15:35 -0700
commit8939b6a99bbcc2db335d557df802e31b8a310aec (patch)
tree20e78e288148b5983130e61bcbaf919ed90c7def /profile-widget/profilewidget2.cpp
parent8c72ac6b9b00778e03dd60fe30bf4ba53d87ab55 (diff)
downloadsubsurface-8939b6a99bbcc2db335d557df802e31b8a310aec.tar.gz
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>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r--profile-widget/profilewidget2.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 9f6158659..b82de0d9e 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -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);