tools/templates/pixlabel.h
author antonc27 <antonc27@mail.ru>
Sun, 10 Jun 2018 19:12:26 +0200
branchios-develop
changeset 13413 ba39a1d396c0
parent 8442 535a00ca0d35
permissions -rw-r--r--
Merge default to ios-develop

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