tools/templates/pixlabel.h
author sheepluva
Sun, 01 Mar 2015 17:32:26 +0100
changeset 10843 5c2ef0507971
parent 8442 535a00ca0d35
permissions -rw-r--r--
whoops, pas2c did not notice this missing ;

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