aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-16 12:44:18 +0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-16 12:44:18 +0700
commit2e08f75618e6ff86e37de5e1ee0100a31cc8efb7 (patch)
treea1fee0b149ab9dbb357663a8d45e779ae52f2821 /qt-ui/profile/profilewidget2.cpp
parent49a4a11a44dace1ac10877f5e109f9dd73a69fa1 (diff)
downloadsubsurface-2e08f75618e6ff86e37de5e1ee0100a31cc8efb7.tar.gz
Get rid of build warnings
This is just to make it more obvious when new issues get introduced. The build should always be free of warnings... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 283b602ab..e1c154546 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -118,12 +118,13 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
QSignalTransition *tEditToProfile = editState->addTransition(this, SIGNAL(startProfileState()), profileState);
QSignalTransition *tEditToAdd = editState->addTransition(this, SIGNAL(startAddState()), addState);
- // Constants:
+ // Constants:
const int backgroundOnCanvas = 0;
const int backgroundOffCanvas = 110;
const int profileYAxisOnCanvas = 3;
const int profileYAxisOffCanvas = profileYAxis->boundingRect().width() - 10;
- const int gasYAxisOnCanvas = gasYAxis->boundingRect().width();
+ // unused so far:
+ // const int gasYAxisOnCanvas = gasYAxis->boundingRect().width();
const int depthControllerOnCanvas = sceneRect().height() - depthController->boundingRect().height();
const int timeControllerOnCanvas = sceneRect().height() - timeController->boundingRect().height();
const int gasYAxisOffCanvas = gasYAxis->boundingRect().width() - 10;
@@ -133,7 +134,8 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
const int depthControllerOffCanvas = sceneRect().height() + depthController->boundingRect().height();
const int timeControllerOffCanvas = sceneRect().height() + timeController->boundingRect().height();
const QLineF profileYAxisExpanded = QLineF(0,0,0,timeAxisOnCanvas);
- const QLineF timeAxisLine = QLineF(0, 0, 96, 0);
+ // unused so far:
+ // const QLineF timeAxisLine = QLineF(0, 0, 96, 0);
// State Defaults:
// Empty State, everything but the background is hidden.