tools/templates/pixlabel.h
author sheepluva
Tue, 27 Oct 2015 21:11:44 +0100
branchios-revival
changeset 11247 5c21ee975d5d
parent 8442 535a00ca0d35
permissions -rw-r--r--
somebody was so nice to mention me in credits, but misspelled my last name

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