#ifndef BORDERMETATILESPIXMAPITEM_H #define BORDERMETATILESPIXMAPITEM_H #include "map.h" #include "metatileselector.h" #include class BorderMetatilesPixmapItem : public QObject, public QGraphicsPixmapItem { Q_OBJECT public: BorderMetatilesPixmapItem(Map *map_, MetatileSelector *metatileSelector) { this->map = map_; this->metatileSelector = metatileSelector; setAcceptHoverEvents(true); } MetatileSelector *metatileSelector; Map* map; void draw(); signals: void borderMetatilesChanged(); protected: void mousePressEvent(QGraphicsSceneMouseEvent*); }; #endif // BORDERMETATILESPIXMAPITEM_H