tools/templates/pixlabel.h
author Wuzzy <almikes@aol.com>
Sat, 22 Apr 2017 23:55:49 +0200 (2017-04-22)
changeset 12308 82951b9b3c2f
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix hog not getting new ammo in Highlander when it takes 2 consecutive turns This happens when all enemy hogs are frozen
#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);
};