tools/templates/pixlabel.h
author sheepluva
Sat, 30 Apr 2016 00:02:33 +0200
changeset 11784 3ec3048c339c
parent 8442 535a00ca0d35
permissions -rw-r--r--
koda told me that putting in one finger wasn't enough

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