diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2016-03-08 02:23:54 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-08 20:58:13 -0800 |
commit | 6f494964de86416fe6ce439bacd450fbf443beed (patch) | |
tree | de3b91b12d913eab3bf7dfb285a072dcbd03769f /profile-widget | |
parent | 98e8a04d01caa90e5384654fb247b2778f6760c9 (diff) | |
download | subsurface-6f494964de86416fe6ce439bacd450fbf443beed.tar.gz |
Silence warnings in TankItem
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/tankitem.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/profile-widget/tankitem.cpp b/profile-widget/tankitem.cpp index c0e75a371..aba41d660 100644 --- a/profile-widget/tankitem.cpp +++ b/profile-widget/tankitem.cpp @@ -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; |