tools/templates/pixlabel.h
author unc0rr
Fri, 27 Sep 2013 12:58:21 +0400
changeset 9468 3d07fd84c39d
parent 8442 535a00ca0d35
permissions -rw-r--r--
- Actually call uTexture.initModule and .freeModule - Fix texture leaks in teams/hedgehogs structures on application shutdown

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