Cleanup: turn TankItem member variable into a constant

TankItem had a "height" member variable that was never modified.
Turn it into a constant, which is local to the translation unit.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-10-27 18:32:04 +01:00 committed by Dirk Hohndel
parent a7067937b0
commit 9344dd51b7
2 changed files with 2 additions and 2 deletions

View file

@ -5,11 +5,12 @@
#include "core/profile.h"
#include <QPen>
static const qreal height = 3.0;
TankItem::TankItem(QObject *parent) :
QObject(parent),
plotEndTime(-1)
{
height = 3;
QColor red(PERSIANRED1);
QColor blue(AIR_BLUE);
QColor yellow(NITROX_YELLOW);

View file

@ -27,7 +27,6 @@ private:
void createBar(int startTime, int stopTime, struct gasmix gas);
DiveCartesianAxis *hAxis;
int plotEndTime;
qreal height;
QBrush air, nitrox, oxygen, trimix;
QList<QGraphicsRectItem *> rects;
};