tools/templates/pixlabel.h
author unc0rr
Tue, 15 Mar 2016 22:29:40 +0300
changeset 11632 cac74d9075be
parent 8442 535a00ca0d35
permissions -rw-r--r--
logging via physfs (grafted from f0dcdbb9b2fef96188c5d90547b12201228ce878)

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