tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Wed, 21 Mar 2018 14:36:26 +0100
changeset 13259 e13777374583
parent 8442 535a00ca0d35
permissions -rw-r--r--
Add some isNull checks for some strings in mapContainer

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