tools/templates/pixlabel.h
author sheepluva
Wed, 05 Mar 2014 12:35:51 +0100
branch0.9.20
changeset 9930 c38cdb5dd37c
parent 8442 535a00ca0d35
permissions -rw-r--r--
don't stack bye/teleport sounds of hogs (when a team is gone)

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