mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: make three member functions const
These accessors do not change the ProfileWidget2 state, so make them const. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f4d806c77a
commit
de220c2da0
2 changed files with 6 additions and 6 deletions
|
@ -1321,7 +1321,7 @@ void ProfileWidget2::setPlanState()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool ProfileWidget2::isPlanner()
|
bool ProfileWidget2::isPlanner() const
|
||||||
{
|
{
|
||||||
return currentState == PLAN;
|
return currentState == PLAN;
|
||||||
}
|
}
|
||||||
|
@ -1608,7 +1608,7 @@ void ProfileWidget2::changeGas(int tank, int seconds)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool ProfileWidget2::getPrintMode()
|
bool ProfileWidget2::getPrintMode() const
|
||||||
{
|
{
|
||||||
return printMode;
|
return printMode;
|
||||||
}
|
}
|
||||||
|
@ -1641,7 +1641,7 @@ void ProfileWidget2::setFontPrintScale(double scale)
|
||||||
emit fontPrintScaleChanged(scale);
|
emit fontPrintScaleChanged(scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
double ProfileWidget2::getFontPrintScale()
|
double ProfileWidget2::getFontPrintScale() const
|
||||||
{
|
{
|
||||||
if (printMode)
|
if (printMode)
|
||||||
return fontPrintScale;
|
return fontPrintScale;
|
||||||
|
|
|
@ -79,10 +79,10 @@ public:
|
||||||
void scale(qreal sx, qreal sy);
|
void scale(qreal sx, qreal sy);
|
||||||
void plotDive(const struct dive *d, bool force = false, bool clearPictures = false, bool instant = false);
|
void plotDive(const struct dive *d, bool force = false, bool clearPictures = false, bool instant = false);
|
||||||
void setPrintMode(bool mode, bool grayscale = false);
|
void setPrintMode(bool mode, bool grayscale = false);
|
||||||
bool getPrintMode();
|
bool getPrintMode() const;
|
||||||
bool isPointOutOfBoundaries(const QPointF &point) const;
|
bool isPointOutOfBoundaries(const QPointF &point) const;
|
||||||
bool isPlanner();
|
bool isPlanner() const;
|
||||||
double getFontPrintScale();
|
double getFontPrintScale() const;
|
||||||
void setFontPrintScale(double scale);
|
void setFontPrintScale(double scale);
|
||||||
#ifndef SUBSURFACE_MOBILE
|
#ifndef SUBSURFACE_MOBILE
|
||||||
bool eventFilter(QObject *, QEvent *) override;
|
bool eventFilter(QObject *, QEvent *) override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue