tools/templates/pixlabel.h
author alfadur
Wed, 07 Nov 2018 18:30:33 +0300
changeset 14177 74ca70cb753d
parent 8442 535a00ca0d35
permissions -rw-r--r--
fix mapgen

#include <QLabel>
#include <QRect>
#include <QList>
#include <QMouseEvent>

class PixLabel : public QLabel
{
    Q_OBJECT

public:

    PixLabel();
    QList<QRect> rects;

public slots:
    void AddRect();

private:
    void paintEvent(QPaintEvent * event);
    void mousePressEvent(QMouseEvent * e);
};