tools/templates/pixlabel.h
author sheepluva
Fri, 21 Nov 2014 19:09:45 +0100
changeset 10524 2bc0ff00e95b
parent 8442 535a00ca0d35
permissions -rw-r--r--
password flag was the wrong way around

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