tools/templates/pixlabel.h
author unc0rr
Wed, 17 Oct 2018 22:58:21 +0200
changeset 13936 78c798d655ad
parent 8442 535a00ca0d35
permissions -rw-r--r--
Make use of LinePoints in Land2D::draw_line

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