tools/templates/pixlabel.h
author unc0rr
Sat, 27 Feb 2016 18:02:24 +0300
changeset 11578 013264e25d71
parent 8442 535a00ca0d35
permissions -rw-r--r--
Recognize ghost points in checker

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