tools/templates/pixlabel.h
author unc0rr
Fri, 05 Oct 2018 21:04:01 +0200
changeset 13857 bc90a932a4b3
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix pas2c not having support for High(LongInt) in init expressions

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