tools/templates/pixlabel.h
author sheepluva
Sun, 22 Mar 2015 21:40:16 +0100
changeset 10866 c1f75780c56f
parent 8442 535a00ca0d35
permissions -rw-r--r--
make using hog speech a bit more comfortable

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