tools/templates/pixlabel.h
author koda
Sun, 15 May 2016 10:43:18 +0200
changeset 11807 93621207563b
parent 8442 535a00ca0d35
permissions -rw-r--r--
avrec crash/math fix (sheepy here, committing koda's fix because I'm tired of having it lying around in my repo :P

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