tools/templates/pixlabel.h
author unC0Rr
Tue, 06 Nov 2018 17:00:35 +0100
changeset 14143 745c73e0e644
parent 8442 535a00ca0d35
permissions -rw-r--r--
Start working on frontend to rust engine rewrite

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