diff options
Diffstat (limited to 'profile-widget/tankitem.cpp')
-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; |