tools/templates/pixlabel.h
author nemo
Sat, 21 May 2016 15:23:08 -0400
changeset 11831 dd18d8100afd
parent 8442 535a00ca0d35
permissions -rw-r--r--
Change this back to allowing hooking rope to hogs again, 'cause, well, rage...

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