tools/templates/pixlabel.h
author Vittorio Giovara <vittorio.giovara@gmail.com>
Tue, 10 Nov 2015 13:53:15 +0100
branch0.9.22
changeset 11597 4575b6990348
parent 8442 535a00ca0d35
permissions -rw-r--r--
videorec: Appropriately rescale timestamps and duration Applies to both audio and video for them to be in sync.

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