tools/templates/pixlabel.h
author koda
Thu, 13 Jun 2013 22:50:18 +0200
changeset 9225 d8d929f92633
parent 8442 535a00ca0d35
permissions -rw-r--r--
use target name instead of the resulting library, use more macros around

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