tools/templates/pixlabel.h
author koda
Wed, 20 Apr 2016 14:46:04 -0400
changeset 11654 870f22de388b
parent 8442 535a00ca0d35
permissions -rw-r--r--
Add support for compiling C engine with emscripten

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