From 6f494964de86416fe6ce439bacd450fbf443beed Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 8 Mar 2016 02:23:54 -0300 Subject: Silence warnings in TankItem Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- profile-widget/tankitem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 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; -- cgit v1.2.3-70-g09d2