tools/templates/pixlabel.h
author Periklis Ntanasis <pntanasis@gmail.com>
Tue, 30 Jul 2013 13:17:48 +0300
branchspacecampaign
changeset 9390 9956b1fbac8b
parent 8442 535a00ca0d35
permissions -rw-r--r--
rounds that hogs remain frozen 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);
};