#ifndef DIVINGMAPPIXMAPITEM_H #define DIVINGMAPPIXMAPITEM_H #include "mapconnection.h" #include #include #include class DivingMapPixmapItem : public QObject, public QGraphicsPixmapItem { Q_OBJECT public: DivingMapPixmapItem(MapConnection *connection, QComboBox *combo); ~DivingMapPixmapItem(); MapConnection* connection() const { return m_connection; } void updatePixmap(); private: QPointer m_connection; QPointer m_combo; void setComboText(const QString &text); static QPixmap getBasePixmap(MapConnection* connection); private slots: void onTargetMapChanged(); }; #endif // DIVINGMAPPIXMAPITEM_H