tools/templates/pixlabel.h
author jaree@jaree-VirtualBox
Thu, 04 Apr 2013 10:44:03 +0300
changeset 8845 8cf1ed3bae45
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix AI collision detection with crates and overlapping hedgehogs. Remove duplicating code

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