tools/templates/pixlabel.h
author Wuzzy <almikes@aol.com>
Mon, 16 Oct 2017 16:45:19 +0200
changeset 12710 a523295df9d3
parent 8442 535a00ca0d35
permissions -rw-r--r--
Also drop air mine and rubber duck from Construction Mode crates

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