tools/templates/pixlabel.h
author koda
Thu, 13 Jun 2013 15:37:52 +0200
changeset 9220 5e7db24f3489
parent 8442 535a00ca0d35
permissions -rw-r--r--
gather up the linker flags in a macro

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