mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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>
This commit is contained in:
parent
49a4a11a44
commit
2e08f75618
4 changed files with 11 additions and 7 deletions
|
@ -46,7 +46,8 @@ void DiveCartesianAxis::setOrientation(Qt::Orientation o)
|
||||||
void DiveCartesianAxis::updateTicks()
|
void DiveCartesianAxis::updateTicks()
|
||||||
{
|
{
|
||||||
QLineF m = line();
|
QLineF m = line();
|
||||||
QGraphicsView *view = scene()->views().first();
|
// unused so far:
|
||||||
|
// QGraphicsView *view = scene()->views().first();
|
||||||
double steps = (max - min) / interval;
|
double steps = (max - min) / interval;
|
||||||
double currValue = min;
|
double currValue = min;
|
||||||
|
|
||||||
|
@ -63,7 +64,8 @@ void DiveCartesianAxis::updateTicks()
|
||||||
// Move the remaining Ticks / Text to it's corerct position
|
// Move the remaining Ticks / Text to it's corerct position
|
||||||
// Regartind the possibly new values for the Axis
|
// Regartind the possibly new values for the Axis
|
||||||
qreal begin = orientation == Qt::Horizontal ? m.x1() : m.y1();
|
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());
|
double stepSize = orientation == Qt::Horizontal ? (m.x2() - m.x1()) : (m.y2() - m.y1());
|
||||||
stepSize = stepSize / steps;
|
stepSize = stepSize / steps;
|
||||||
for (int i = 0, count = ticks.size(); i < count; i++, currValue += interval) {
|
for (int i = 0, count = ticks.size(); i < count; i++, currValue += interval) {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include "display.h"
|
#include "display.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
DivePlotDataModel::DivePlotDataModel(QObject* parent): QAbstractTableModel(parent), plotData(NULL), sampleCount(0)
|
DivePlotDataModel::DivePlotDataModel(QObject* parent): QAbstractTableModel(parent), sampleCount(0), plotData(NULL)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include <QLinearGradient>
|
#include <QLinearGradient>
|
||||||
|
|
||||||
DiveProfileItem::DiveProfileItem(): QObject(), QGraphicsPolygonItem(),
|
DiveProfileItem::DiveProfileItem(): QObject(), QGraphicsPolygonItem(),
|
||||||
hAxis(NULL), hDataColumn(-1), dataModel(NULL), vAxis(NULL), vDataColumn(-1)
|
hAxis(NULL), vAxis(NULL), dataModel(NULL), hDataColumn(-1), vDataColumn(-1)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,12 +118,13 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
|
||||||
QSignalTransition *tEditToProfile = editState->addTransition(this, SIGNAL(startProfileState()), profileState);
|
QSignalTransition *tEditToProfile = editState->addTransition(this, SIGNAL(startProfileState()), profileState);
|
||||||
QSignalTransition *tEditToAdd = editState->addTransition(this, SIGNAL(startAddState()), addState);
|
QSignalTransition *tEditToAdd = editState->addTransition(this, SIGNAL(startAddState()), addState);
|
||||||
|
|
||||||
// Constants:
|
// Constants:
|
||||||
const int backgroundOnCanvas = 0;
|
const int backgroundOnCanvas = 0;
|
||||||
const int backgroundOffCanvas = 110;
|
const int backgroundOffCanvas = 110;
|
||||||
const int profileYAxisOnCanvas = 3;
|
const int profileYAxisOnCanvas = 3;
|
||||||
const int profileYAxisOffCanvas = profileYAxis->boundingRect().width() - 10;
|
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 depthControllerOnCanvas = sceneRect().height() - depthController->boundingRect().height();
|
||||||
const int timeControllerOnCanvas = sceneRect().height() - timeController->boundingRect().height();
|
const int timeControllerOnCanvas = sceneRect().height() - timeController->boundingRect().height();
|
||||||
const int gasYAxisOffCanvas = gasYAxis->boundingRect().width() - 10;
|
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 depthControllerOffCanvas = sceneRect().height() + depthController->boundingRect().height();
|
||||||
const int timeControllerOffCanvas = sceneRect().height() + timeController->boundingRect().height();
|
const int timeControllerOffCanvas = sceneRect().height() + timeController->boundingRect().height();
|
||||||
const QLineF profileYAxisExpanded = QLineF(0,0,0,timeAxisOnCanvas);
|
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:
|
// State Defaults:
|
||||||
// Empty State, everything but the background is hidden.
|
// Empty State, everything but the background is hidden.
|
||||||
|
|
Loading…
Reference in a new issue