tools/templates/pixlabel.h
author unc0rr
Sat, 05 Mar 2016 16:46:04 +0300
changeset 11596 7c9243584a72
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix TechRacer not recoding finish if time was >= 100s by raising this limit ten times.

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