tools/templates/pixlabel.h
author nemo
Thu, 08 Oct 2015 10:42:00 -0400
changeset 11202 a85b0ef91685
parent 8442 535a00ca0d35
permissions -rw-r--r--
restore uid on resurrection as well

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