tools/templates/pixlabel.h
author unC0Rr
Fri, 02 Nov 2018 14:33:05 +0100
changeset 14079 a173557250a3
parent 8442 535a00ca0d35
permissions -rw-r--r--
abs(hwRound()) is nonsense

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