tools/templates/pixlabel.h
author sheepluva
Thu, 21 Mar 2013 10:08:30 +0100
changeset 8765 688062f1db59
parent 8442 535a00ca0d35
permissions -rw-r--r--
fix/hack so that (own) messages sent in frontend are also visible in the game chat

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