tools/templates/pixlabel.h
author unc0rr
Wed, 13 Jan 2016 19:38:03 +0300
changeset 11513 a4ad8a9e0f69
parent 8442 535a00ca0d35
permissions -rw-r--r--
Don't allow to kick an admin with super power enabled

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