tools/templates/pixlabel.h
author unC0Rr
Mon, 26 Nov 2018 14:48:38 +0100
changeset 14303 00b56ec8b7df
parent 8442 535a00ca0d35
permissions -rw-r--r--
Pass opengl context to engine

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