mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Silence warnings in TankItem
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
98e8a04d01
commit
6f494964de
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <QPen>
|
||||
|
||||
TankItem::TankItem(QObject *parent) :
|
||||
QObject(parent),
|
||||
QGraphicsRectItem(),
|
||||
dataModel(0),
|
||||
pInfoEntry(0),
|
||||
|
@ -78,8 +79,9 @@ void TankItem::createBar(qreal x, qreal w, struct gasmix *gas)
|
|||
|
||||
void TankItem::modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
|
||||
{
|
||||
Q_UNUSED(topLeft);
|
||||
Q_UNUSED(bottomRight);
|
||||
// We don't have enougth data to calculate things, quit.
|
||||
|
||||
if (!dataModel || !pInfoEntry || !pInfoNr)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue