tools/templates/pixlabel.h
author unc0rr
Mon, 08 Dec 2014 23:00:13 +0300
changeset 10642 8fdfa2b77d83
parent 8442 535a00ca0d35
permissions -rw-r--r--
Normalize to length of _1_9 to avoid endless normalization leading to fire particles floating midair indefinitely

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