tools/templates/pixlabel.h
author Wuzzy <almikes@aol.com>
Sun, 01 May 2016 00:09:14 +0200
changeset 11917 d819c04d0cbe
parent 8442 535a00ca0d35
permissions -rw-r--r--
Show timer at 999s instead of 1000s

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