tools/templates/pixlabel.h
author alfadur
Thu, 25 Oct 2018 04:55:27 +0300
changeset 13960 0e2fd51c4a52
parent 8442 535a00ca0d35
permissions -rw-r--r--
fix some of Wuzzy's rage

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