tools/templates/pixlabel.h
author Periklis Ntanasis <pntanasis@gmail.com>
Sat, 17 Aug 2013 01:51:20 +0300
branchspacecampaign
changeset 9538 51596e01c5df
parent 8442 535a00ca0d35
permissions -rw-r--r--
scenario of escape seems ok

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