Add skeleton for the instant mean depth line

This class will hold the visible line of the mean depth for the time 'now'

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:10:21 -02:00 committed by Dirk Hohndel
parent 2839aed8f2
commit 146030f805
3 changed files with 18 additions and 2 deletions

View file

@ -925,3 +925,13 @@ void PartialPressureGasItem::setColors(const QColor &normal, const QColor &alert
normalColor = normal;
alertColor = alert;
}
InstantMeanDepthLine::InstantMeanDepthLine()
{
}
void InstantMeanDepthLine::mouseMoved(int time, int depth)
{
}

View file

@ -204,6 +204,14 @@ private:
DiveTextItem *rightText;
};
class InstantMeanDepthLine : public MeanDepthLine {
Q_OBJECT
public:
InstantMeanDepthLine();
public slots:
void mouseMoved(int time, int depth);
};
class PartialPressureGasItem : public AbstractProfilePolygonItem {
Q_OBJECT
public:

View file

@ -836,8 +836,6 @@ void ProfileWidget2::mouseMoveEvent(QMouseEvent *event)
&& timeAxis->minimum() <= hValue){
mouseFollowerVertical->setPos(pos.x(), profileYAxis->line().y1());
}
}
bool ProfileWidget2::eventFilter(QObject *object, QEvent *event)