mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: remove DiveLineItem
This was an empty wrapper around QGraphicsLineItem. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
faf18ef36b
commit
76faecb379
10 changed files with 2 additions and 65 deletions
|
@ -5,7 +5,6 @@
|
|||
#include "core/qthelper.h"
|
||||
#include "core/subsurface-float.h"
|
||||
#include "profile-widget/animationfunctions.h"
|
||||
#include "profile-widget/divelineitem.h"
|
||||
#include "profile-widget/profilescene.h"
|
||||
|
||||
static const double labelSpaceHorizontal = 2.0; // space between label and ticks
|
||||
|
@ -277,7 +276,7 @@ DiveCartesianAxis::Label DiveCartesianAxis::createLabel(double value, double pos
|
|||
if (lineVisibility) {
|
||||
label.lineStart = linePos(posStart);
|
||||
label.lineEnd = linePos(pos);
|
||||
label.line = std::make_unique<DiveLineItem>(this);
|
||||
label.line = std::make_unique<QGraphicsLineItem>(this);
|
||||
label.line->setPen(gridPen);
|
||||
label.line->setZValue(0);
|
||||
label.line->setLine(animSpeed <= 0 ? label.lineEnd : label.lineStart);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue