mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-21 17:45:44 -05:00
32 lines
761 B
C++
32 lines
761 B
C++
#ifndef DIVINGMAPPIXMAPITEM_H
|
|
#define DIVINGMAPPIXMAPITEM_H
|
|
|
|
#include "mapconnection.h"
|
|
#include "noscrollcombobox.h"
|
|
|
|
#include <QGraphicsPixmapItem>
|
|
#include <QPointer>
|
|
#include <QComboBox>
|
|
|
|
class DivingMapPixmapItem : public QObject, public QGraphicsPixmapItem {
|
|
Q_OBJECT
|
|
public:
|
|
DivingMapPixmapItem(MapConnection *connection, NoScrollComboBox *combo);
|
|
~DivingMapPixmapItem();
|
|
|
|
MapConnection* connection() const { return m_connection; }
|
|
void updatePixmap();
|
|
|
|
private:
|
|
QPointer<MapConnection> m_connection;
|
|
QPointer<NoScrollComboBox> m_combo;
|
|
|
|
void setComboText(const QString &text);
|
|
static QPixmap getBasePixmap(MapConnection* connection);
|
|
|
|
private slots:
|
|
void onTargetMapChanged();
|
|
};
|
|
|
|
#endif // DIVINGMAPPIXMAPITEM_H
|