mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Set data model for the MeanDepth line
This way we can poke around data for the mean depth line. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
146030f805
commit
c7a5d81683
2 changed files with 6 additions and 0 deletions
|
@ -822,6 +822,10 @@ MeanDepthLine::MeanDepthLine() : meanDepth(0), leftText(new DiveTextItem(this)),
|
|||
rightText->setPos(line().length(), 0);
|
||||
}
|
||||
|
||||
void MeanDepthLine::setModel(DivePlotDataModel *m){
|
||||
model = m;
|
||||
}
|
||||
|
||||
void MeanDepthLine::setLine(qreal x1, qreal y1, qreal x2, qreal y2)
|
||||
{
|
||||
QGraphicsLineItem::setLine(x1, y1, x2, y2);
|
||||
|
|
|
@ -194,6 +194,7 @@ public:
|
|||
void setMeanDepth(int value);
|
||||
void setLine(qreal x1, qreal y1, qreal x2, qreal y2);
|
||||
void setAxis(DiveCartesianAxis *a);
|
||||
void setModel(DivePlotDataModel *m);
|
||||
public
|
||||
slots:
|
||||
void axisLineChanged();
|
||||
|
@ -202,6 +203,7 @@ private:
|
|||
int meanDepth;
|
||||
DiveTextItem *leftText;
|
||||
DiveTextItem *rightText;
|
||||
DivePlotDataModel *model;
|
||||
};
|
||||
|
||||
class InstantMeanDepthLine : public MeanDepthLine {
|
||||
|
|
Loading…
Add table
Reference in a new issue