tools/templates/pixlabel.h
author koda
Fri, 25 Mar 2016 11:21:18 -0400
changeset 11626 968bff2534ca
parent 8442 535a00ca0d35
permissions -rw-r--r--
Keep very old compatibility

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