diff options
-rw-r--r-- | profile-widget/tankitem.cpp | 5 | ||||
-rw-r--r-- | profile-widget/tankitem.h | 10 |
2 files changed, 4 insertions, 11 deletions
diff --git a/profile-widget/tankitem.cpp b/profile-widget/tankitem.cpp index 5469ffc0d..d87b1228b 100644 --- a/profile-widget/tankitem.cpp +++ b/profile-widget/tankitem.cpp @@ -7,8 +7,7 @@ static const qreal height = 3.0; -TankItem::TankItem(QObject *parent) : - QObject(parent), +TankItem::TankItem() : plotEndTime(-1) { QColor red(PERSIANRED1); @@ -111,6 +110,4 @@ void TankItem::replot() void TankItem::setHorizontalAxis(DiveCartesianAxis *horizontal) { hAxis = horizontal; - connect(hAxis, SIGNAL(sizeChanged()), this, SLOT(replot())); - replot(); } diff --git a/profile-widget/tankitem.h b/profile-widget/tankitem.h index b89b6b0ff..f3e0c0238 100644 --- a/profile-widget/tankitem.h +++ b/profile-widget/tankitem.h @@ -8,20 +8,16 @@ #include "profile-widget/divecartesianaxis.h" #include "core/dive.h" -class TankItem : public QObject, public QGraphicsRectItem +class TankItem : public QGraphicsRectItem { - Q_OBJECT - public: - explicit TankItem(QObject *parent = 0); + explicit TankItem(); void setHorizontalAxis(DiveCartesianAxis *horizontal); void setData(struct plot_info *plotInfo, struct dive *d); -public slots: - void replot(); - private: void createBar(int startTime, int stopTime, struct gasmix gas); + void replot(); DiveCartesianAxis *hAxis; int plotEndTime; QBrush air, nitrox, oxygen, trimix; |