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:
Tomaz Canabrava 2014-12-30 21:13:50 -02:00 committed by Dirk Hohndel
parent 146030f805
commit c7a5d81683
2 changed files with 6 additions and 0 deletions

View file

@ -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);