tools/templates/pixlabel.h
author Vittorio Giovara <vittorio.giovara@gmail.com>
Fri, 03 Jan 2014 05:58:18 -0800
changeset 9918 ca90e470333b
parent 8442 535a00ca0d35
permissions -rw-r--r--
Merge pull request #6 from LocutusOfBorg/added-travis Added simple travis file for automated github testing

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