tools/templates/pixlabel.h
author unC0Rr
Thu, 24 Mar 2016 14:40:59 +0300
branch0.9.22
changeset 12368 1e7a50e91d0c
parent 8442 535a00ca0d35
permissions -rw-r--r--
Achievement for ClimbHome

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