tools/templates/pixlabel.h
author nemo
Thu, 31 Dec 2015 15:11:44 -0500
changeset 11478 8c95d5a4366c
parent 8442 535a00ca0d35
permissions -rw-r--r--
Tweak the hole carving to become less agressive about spacing if random points keep failing.

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