tools/templates/pixlabel.h
author unc0rr
Mon, 22 Feb 2016 23:49:54 +0300
changeset 11563 7e5d6ce6fe14
parent 8442 535a00ca0d35
permissions -rw-r--r--
Treat #99 point type as a ghost trace

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