tools/templates/pixlabel.h
author antonc27 <antonc27@mail.ru>
Fri, 18 Sep 2015 04:33:37 +0200
branchios-revival
changeset 11182 55f20efae2e4
parent 8442 535a00ca0d35
permissions -rw-r--r--
- Fix for consequent selection of same hat for all hogs in settings - Small refactoring of HogHatViewController

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