diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-13 19:41:30 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-13 17:18:37 -0700 |
commit | ebb342c969fab99d1c497b24f5511ebb427cdc92 (patch) | |
tree | cad17108728de5f17441a4b2f80acb0b26f85d61 /profile-widget/divecartesianaxis.h | |
parent | fc697538faff60bfb72e3bf62d45a7a629fd9640 (diff) | |
download | subsurface-ebb342c969fab99d1c497b24f5511ebb427cdc92.tar.gz |
cleanup: turn protected into private members
Some profilewidget classes hat protected members which can
be made private as there is no subclassing.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/divecartesianaxis.h')
-rw-r--r-- | profile-widget/divecartesianaxis.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/profile-widget/divecartesianaxis.h b/profile-widget/divecartesianaxis.h index 2d65c5586..588e06ea1 100644 --- a/profile-widget/divecartesianaxis.h +++ b/profile-widget/divecartesianaxis.h @@ -81,7 +81,7 @@ class DepthAxis : public DiveCartesianAxis { Q_OBJECT public: DepthAxis(ProfileWidget2 *widget); -protected: +private: QString textForValue(double value); QColor colorForValue(double value); private @@ -94,8 +94,7 @@ class TimeAxis : public DiveCartesianAxis { public: TimeAxis(ProfileWidget2 *widget); void updateTicks(color_index_t color = TIME_GRID); - -protected: +private: QString textForValue(double value); QColor colorForValue(double value); }; @@ -104,7 +103,7 @@ class TemperatureAxis : public DiveCartesianAxis { Q_OBJECT public: TemperatureAxis(ProfileWidget2 *widget); -protected: +private: QString textForValue(double value); }; @@ -116,7 +115,6 @@ public: public slots: void settingsChanged(); - private: DivePlotDataModel *model; }; |