tools/templates/pixlabel.h
author unc0rr
Sun, 29 Jun 2014 22:50:21 +0400
changeset 10344 cceabf9628bb
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix issues with unsynced F and G messages being lost if current team which is supposed to convert them to synced f/g quits

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