tools/templates/pixlabel.h
author antonc27 <antonc27@mail.ru>
Fri, 18 Sep 2015 05:37:55 +0200
branchios-revival
changeset 11183 b2112ed988cb
parent 8442 535a00ca0d35
permissions -rw-r--r--
- Added functionality to select one hat for all hogs at team settings

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