tools/templates/pixlabel.h
author sheepluva
Tue, 16 Feb 2016 03:19:23 +0100
changeset 11555 881231c1ba46
parent 8442 535a00ca0d35
permissions -rw-r--r--
disallow bullets to hit the hedgehog that fired them (unless bounced/wrapped/portal'd)

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