Initialize variable members in DiveCartesianAxis class.

* Initialize variable members in DiveCartesianAxis class.

Note: Initialized values I put needs to be doublechecked.

Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Boris Barbulovski 2014-02-09 18:37:40 +01:00 committed by Dirk Hohndel
parent d120e861cb
commit 6ae870bd22

View file

@ -60,7 +60,14 @@ void DiveCartesianAxis::setTextColor(const QColor& color)
textColor = color;
}
DiveCartesianAxis::DiveCartesianAxis() : orientation(LeftToRight)
DiveCartesianAxis::DiveCartesianAxis() : QObject(),
QGraphicsLineItem(),
unitSystem(0),
orientation(LeftToRight),
min(0),
max(0),
interval(1),
tick_size(0)
{
setPen(gridPen());
}