tools/templates/pixlabel.h
author sheepluva
Sat, 06 Jan 2018 03:17:12 +0100
branchqmlfrontend
changeset 12882 bf58f2403953
parent 8442 535a00ca0d35
permissions -rw-r--r--
whoops, I ruined the path of the unC0Rr

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