mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Unused code: DiveCartesianAxis::percentAt()
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
d0ff3917b1
commit
a88c950738
2 changed files with 0 additions and 9 deletions
|
@ -324,14 +324,6 @@ qreal DiveCartesianAxis::posAtValue(qreal value)
|
||||||
return adjusted;
|
return adjusted;
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal DiveCartesianAxis::percentAt(const QPointF &p)
|
|
||||||
{
|
|
||||||
qreal value = valueAt(p);
|
|
||||||
double size = max - min;
|
|
||||||
double percent = value / size;
|
|
||||||
return percent;
|
|
||||||
}
|
|
||||||
|
|
||||||
double DiveCartesianAxis::maximum() const
|
double DiveCartesianAxis::maximum() const
|
||||||
{
|
{
|
||||||
return max;
|
return max;
|
||||||
|
|
|
@ -41,7 +41,6 @@ public:
|
||||||
double maximum() const;
|
double maximum() const;
|
||||||
double fontLabelScale() const;
|
double fontLabelScale() const;
|
||||||
qreal valueAt(const QPointF &p) const;
|
qreal valueAt(const QPointF &p) const;
|
||||||
qreal percentAt(const QPointF &p);
|
|
||||||
qreal posAtValue(qreal value);
|
qreal posAtValue(qreal value);
|
||||||
void setColor(const QColor &color);
|
void setColor(const QColor &color);
|
||||||
void setTextColor(const QColor &color);
|
void setTextColor(const QColor &color);
|
||||||
|
|
Loading…
Add table
Reference in a new issue