1
0
Fork 0
mirror of https://github.com/subsurface/subsurface.git synced 2025-02-19 22:16:15 +00:00
subsurface/qt-ui/profile
Lubomir I. Ivanov f2bfc72648 Ruler: change how the ruler text drawing works
A couple of problems with the ruler:
- the rotated text doesn't look very well at all and interpolation doesn't
  help it much
- measuring towards the right most part of the profile makes the text go
  out of the screen

To solve these issues and attempt to improve the ruler this patch does the
following:
- place the text at the bottom of the lowest of the start and end points.
  this way the line will never intersect with the text
- clamp the x position, so that the text doesn't ever leave the screen
  horizontally
- place a white background behind the text so that it will cover text and
  graphics under the ruler item

(TODO: place the ruler on top of everything else)

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-03-12 11:24:20 -07:00
..
animationfunctions.cpp Support save / load for the Animation Speed on the Preferences 2014-03-11 17:41:41 -07:00
animationfunctions.h Support Animation Speed via Settings. 2014-03-11 17:41:41 -07:00
divecartesianaxis.cpp Profile2: fix some initializer list order warnings 2014-03-10 09:01:58 -07:00
divecartesianaxis.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diveeventitem.cpp Support Animation Speed via Settings. 2014-03-11 17:41:41 -07:00
diveeventitem.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divelineitem.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divelineitem.h Put include guard to every header 2014-02-11 12:37:01 -08:00
divepixmapitem.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divepixmapitem.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diveplotdatamodel.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diveplotdatamodel.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diveprofileitem.cpp Profile2: use an implicit initializer for a struct array 2014-03-10 09:02:01 -07:00
diveprofileitem.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diverectitem.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diverectitem.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divetextitem.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divetextitem.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divetooltipitem.cpp Remove a Lot of Dead Code. 2014-03-07 08:56:06 -08:00
divetooltipitem.h Remove a Lot of Dead Code. 2014-03-07 08:56:06 -08:00
profilewidget2.cpp Only anim if not first dive when openning subsurface with a divelog. 2014-03-11 17:42:42 -07:00
profilewidget2.h Profile2: reset the zoom level when a new profile is drawn 2014-03-10 09:02:31 -07:00
ruleritem.cpp Ruler: change how the ruler text drawing works 2014-03-12 11:24:20 -07:00
ruleritem.h Ruler: change how the ruler text drawing works 2014-03-12 11:24:20 -07:00