profile: remove DepthAxis constructor specialization

All this did was setting changed to true. Obviously an
artifact, since that is done in the constructor of the
base class anyway. Remove.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-09-11 22:08:59 +02:00 committed by Dirk Hohndel
parent 89d9105209
commit 4b9177c098
2 changed files with 1 additions and 9 deletions

View file

@ -360,13 +360,6 @@ QColor DepthAxis::colorForValue(double) const
return QColor(Qt::red); return QColor(Qt::red);
} }
DepthAxis::DepthAxis(Position position, color_index_t gridColor, double dpr,
bool printMode, bool isGrayscale, ProfileScene &scene) :
DiveCartesianAxis(position, gridColor, dpr, printMode, isGrayscale, scene)
{
changed = true;
}
QColor TimeAxis::colorForValue(double) const QColor TimeAxis::colorForValue(double) const
{ {
return QColor(Qt::blue); return QColor(Qt::blue);

View file

@ -80,8 +80,7 @@ protected:
class DepthAxis : public DiveCartesianAxis { class DepthAxis : public DiveCartesianAxis {
Q_OBJECT Q_OBJECT
public: public:
DepthAxis(Position position, color_index_t gridColor, double dpr, using DiveCartesianAxis::DiveCartesianAxis;
bool printMode, bool isGrayscale, ProfileScene &scene);
private: private:
QString textForValue(double value) const override; QString textForValue(double value) const override;
QColor colorForValue(double value) const override; QColor colorForValue(double value) const override;