tools/templates/pixlabel.h
author sheepluva
Fri, 17 Jan 2014 13:51:47 +0100
changeset 10000 d657b6656c19
parent 8442 535a00ca0d35
permissions -rw-r--r--
position "finger"/pointer over current hog above tags

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