tools/templates/pixlabel.h
author sheepluva <sheepluva@users.noreply.github.com>
Fri, 28 Nov 2014 18:11:31 +0100
changeset 10567 9744ca2764d6
parent 8442 535a00ca0d35
permissions -rw-r--r--
Merge pull request #21 from LocutusOfBorg/exclude-git Excluding .git directory from the source tarball creation

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