tools/templates/pixlabel.h
author unc0rr
Mon, 05 Jan 2015 18:30:43 +0300
changeset 10763 161b9104b7b3
parent 8442 535a00ca0d35
permissions -rw-r--r--
Support _S and _P in initialization expressions

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