mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: fix y-coordinate of picture thumbnails
When changing from relative to absolute scaling of the char elements, positioning of the picture thumbnails was broken. To emulate the old behavior, add a function to DiveCartesianAxis, that allows positioning with respect to the axis on the screen. To simplify tuning of the poctuire positions, name a few constants explicitly. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
51be326879
commit
6cc6fe4d91
3 changed files with 25 additions and 5 deletions
|
@ -39,6 +39,7 @@ public:
|
|||
qreal valueAt(const QPointF &p) const;
|
||||
qreal posAtValue(qreal value) const;
|
||||
void setPosition(const QRectF &rect);
|
||||
double screenPosition(double pos) const; // 0.0 = begin, 1.0 = end of axis, independent of represented values
|
||||
void setTextVisible(bool arg1);
|
||||
void setLinesVisible(bool arg1);
|
||||
void updateTicks(int animSpeed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue