tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Fri, 09 Mar 2018 19:40:49 +0100
changeset 13146 9655072d0286
parent 8442 535a00ca0d35
permissions -rw-r--r--
ACF8: Fix invisible cyborg sometimes blocking the way

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