tools/templates/pixlabel.h
author Wuzzy <almikes@aol.com>
Thu, 27 Apr 2017 21:00:28 +0200
changeset 12361 05fe955e2763
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking Also harden the code against double function calls

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