tools/templates/pixlabel.h
author sheepluva
Thu, 02 Oct 2014 12:08:22 +0200
changeset 10423 b9d6463cf2ca
parent 8442 535a00ca0d35
permissions -rw-r--r--
fix mapgen of other scripts too

#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);
};