tools/templates/pixlabel.h
author alfadur
Mon, 19 Nov 2018 04:21:44 +0300
changeset 14239 27ae2d3d04b6
parent 8442 535a00ca0d35
permissions -rw-r--r--
seems like it's either this or swap indexing order everywhere

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