aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget
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
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')
-rw-r--r--profile-widget/profilewidget2.cpp2
-rw-r--r--profile-widget/profilewidget2.h1
2 files changed, 0 insertions, 3 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);
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h
index 1b7fcb7c8..2b7d8a88b 100644
--- a/profile-widget/profilewidget2.h
+++ b/profile-widget/profilewidget2.h
@@ -99,7 +99,6 @@ public:
signals:
void fontPrintScaleChanged(double scale);
- void enableToolbar(bool enable);
void editCurrentDive();
public