tools/templates/pixlabel.h
author Urbertar@gmail.com
Tue, 26 Feb 2013 16:46:58 +0200
branchicegun
changeset 8586 191bd86ba000
parent 8442 535a00ca0d35
permissions -rw-r--r--
Make little refactoring

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