tools/templates/pixlabel.h
author sheepluva
Sun, 10 Jan 2016 21:14:06 +0100
changeset 11498 62da13a15aff
parent 8442 535a00ca0d35
permissions -rw-r--r--
merge Wuzzy's bluehogfix bookmark. note: there might be a cleaner fix...

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