summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divecartesianaxis.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/divecartesianaxis.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/divecartesianaxis.cpp')
-rw-r--r--qt-ui/profile/divecartesianaxis.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp
index 84ab8ffcf..6022c576f 100644
--- a/qt-ui/profile/divecartesianaxis.cpp
+++ b/qt-ui/profile/divecartesianaxis.cpp
@@ -46,7 +46,8 @@ void DiveCartesianAxis::setOrientation(Qt::Orientation o)
void DiveCartesianAxis::updateTicks()
{
QLineF m = line();
- QGraphicsView *view = scene()->views().first();
+ // unused so far:
+ // QGraphicsView *view = scene()->views().first();
double steps = (max - min) / interval;
double currValue = min;
@@ -63,7 +64,8 @@ void DiveCartesianAxis::updateTicks()
// Move the remaining Ticks / Text to it's corerct position
// Regartind the possibly new values for the Axis
qreal begin = orientation == Qt::Horizontal ? m.x1() : m.y1();
- qreal end = orientation == Qt::Horizontal ? m.x2() : m.y2();
+ // unused so far:
+ // qreal end = orientation == Qt::Horizontal ? m.x2() : m.y2();
double stepSize = orientation == Qt::Horizontal ? (m.x2() - m.x1()) : (m.y2() - m.y1());
stepSize = stepSize / steps;
for (int i = 0, count = ticks.size(); i < count; i++, currValue += interval) {