tools/templates/pixlabel.h
author sheepluva
Tue, 03 Nov 2015 23:33:32 +0100
changeset 11288 a3f3fc9af429
parent 8442 535a00ca0d35
permissions -rw-r--r--
merge changelog changes of 0.9.22 into default

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