tools/templates/pixlabel.h
author alfadur
Sat, 03 Nov 2018 09:08:13 +0300
changeset 14118 be4419243735
parent 8442 535a00ca0d35
permissions -rw-r--r--
fix normal offset for split points and make directions more consistent

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