aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Boris Barbulovski <bbarbulovski@gmail.com>2014-02-09 18:37:40 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-09 14:42:06 -0800
commit6ae870bd22ec34d072cbf79b8b9b9bca5b81dc00 (patch)
tree820d0aa743739cff2bc9c25a810078ebd51a1af2
parentd120e861cba5cf4af87d30ff4ca5c40edafb9e12 (diff)
downloadsubsurface-6ae870bd22ec34d072cbf79b8b9b9bca5b81dc00.tar.gz
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>
-rw-r--r--qt-ui/profile/divecartesianaxis.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp
index fc43c5a8c..c45546825 100644
--- a/qt-ui/profile/divecartesianaxis.cpp
+++ b/qt-ui/profile/divecartesianaxis.cpp
@@ -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());
}