tools/templates/pixlabel.h
author koda
Sat, 28 Dec 2013 21:53:17 +0100
branch0.9.20
changeset 9858 343d12172070
parent 8442 535a00ca0d35
permissions -rw-r--r--
drop 10.4 support, needed after introduction of @rpath

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