summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-06-10 00:06:00 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-09 16:55:44 -0700
commit8b3ebaa8a3b88b0ff0afbaf1c97aca0cefbb682e (patch)
tree67306bf396a22e090a8715987257e92758c831bb
parent90982a84fa24176caf0110bfab98e43ec7505c3f (diff)
downloadsubsurface-8b3ebaa8a3b88b0ff0afbaf1c97aca0cefbb682e.tar.gz
profilewidget2: fix -Wreorder warnings
warning: 'ProfileWidget2::someVariableName' will be initialized after [-Wreorder] Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/profile/profilewidget2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index f0a58a387..6de0e1f79 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -61,11 +61,12 @@ static struct _ItemPos {
} itemPos;
ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent),
- dataModel(new DivePlotDataModel(this)),
currentState(INVALID),
+ dataModel(new DivePlotDataModel(this)),
zoomLevel(0),
zoomFactor(1.15),
background(new DivePixmapItem()),
+ backgroundFile(":poster"),
toolTipItem(new ToolTipItem()),
isPlotZoomed(prefs.zoomed_plot),
profileYAxis(new DepthAxis()),
@@ -88,8 +89,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent),
rulerItem(new RulerItem2()),
isGrayscale(false),
printMode(false),
- shouldCalculateMaxTime(true),
- backgroundFile(":poster")
+ shouldCalculateMaxTime(true)
{
memset(&plotInfo, 0, sizeof(plotInfo));