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>
This commit is contained in:
Berthold Stoeger 2020-04-13 19:41:30 +02:00 committed by Dirk Hohndel
parent fc697538fa
commit ebb342c969
4 changed files with 8 additions and 14 deletions

View file

@ -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;
};