tools/templates/pixlabel.h
author koda
Wed, 20 Mar 2013 18:31:13 +0100
branchcmake_pascal
changeset 8821 e85ff6e298b5
parent 8442 535a00ca0d35
permissions -rw-r--r--
adjust verbosity, move debug/release variables in the right section

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