tools/templates/pixlabel.h
author nemo
Thu, 24 May 2018 09:51:11 -0400
changeset 13402 13be6de7860f
parent 8442 535a00ca0d35
permissions -rw-r--r--
zero damage on air mine 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);
};