mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: don't show 0m label
The old profile code didn't show the 0m label, because that was cut off. This was lost when redoing the axis code. Reimplement this. The code is very ugly: it recognizes the depth axis by the fact that is the only "inverted" axis. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
725fda3cd1
commit
3579e36b7d
2 changed files with 14 additions and 8 deletions
|
@ -68,7 +68,7 @@ private:
|
|||
QPointF labelPos(double pos) const;
|
||||
QLineF linePos(double pos) const;
|
||||
void updateLabel(Label &label, double opacityEnd, double pos) const;
|
||||
Label createLabel(double value, double pos, double dataMinOld, double dataMaxOld, int animSpeed);
|
||||
Label createLabel(double value, double pos, double dataMinOld, double dataMaxOld, int animSpeed, bool noLabel);
|
||||
QString textForValue(double value) const;
|
||||
std::vector<Label> labels;
|
||||
double dataMin, dataMax;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue