26 lines
671 B
C
26 lines
671 B
C
|
#ifndef BORDERMETATILESPIXMAPITEM_H
|
||
|
#define BORDERMETATILESPIXMAPITEM_H
|
||
|
|
||
|
#include "map.h"
|
||
|
#include "metatileselector.h"
|
||
|
#include <QGraphicsPixmapItem>
|
||
|
|
||
|
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
|