tools/templates/pixlabel.h
author nemo
Wed, 11 Oct 2017 17:05:35 -0400
changeset 12693 2592c6ea6008
parent 8442 535a00ca0d35
permissions -rw-r--r--
wind blowing around mines off-turn was too annoying.

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