tools/templates/pixlabel.h
author Urbertar@gmail.com
Sun, 24 Feb 2013 21:40:06 +0200
branchicegun
changeset 8557 18330b24b92c
parent 8442 535a00ca0d35
permissions -rw-r--r--
Add freezing hogs with icegun

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