tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Tue, 27 Mar 2018 19:59:12 +0200
changeset 13286 1fbf2ac1f13e
parent 8442 535a00ca0d35
permissions -rw-r--r--
Videos frontend page: Locale-aware text formatting

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