tools/templates/pixlabel.h
author sheepluva
Mon, 03 Jun 2013 13:47:35 +0200
branch0.9.19
changeset 9099 a2af0ef2b664
parent 8442 535a00ca0d35
permissions -rw-r--r--
if you use misuse labels as comments please at least keep in mind that labels cannot be used inline, within code blocks or with indentation!

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