tools/templates/pixlabel.h
author antonc27 <antonc27@mail.ru>
Sun, 15 Nov 2015 14:31:01 +0100
branchios-rus-localization
changeset 11391 8b596b5a7b29
parent 8442 535a00ca0d35
permissions -rw-r--r--
Closed branch ios-rus-localization

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