tools/templates/pixlabel.h
author Medo <smaxein@googlemail.com>
Mon, 18 Feb 2013 00:22:16 +0100
changeset 8512 d2bca8e68688
parent 8442 535a00ca0d35
permissions -rw-r--r--
Update Hedgeroid to current JNA version, remove workaround for a bug they fixed.

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