tools/templates/pixlabel.h
author sheepluva
Wed, 03 Dec 2014 17:09:04 +0100
changeset 10615 e3dcb235a354
parent 8442 535a00ca0d35
permissions -rw-r--r--
fix some things I messed up with the drawing functions

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