tools/templates/pixlabel.h
author nemo
Mon, 15 Oct 2018 13:08:29 -0400
changeset 13925 7173b702e8db
parent 8442 535a00ca0d35
permissions -rw-r--r--
tag both as overloadable - seems to satisfy clang 3.4

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