tools/templates/pixlabel.h
author Wuzzy <almikes@aol.com>
Sat, 30 Sep 2017 03:59:54 +0200
changeset 12613 5976d1119534
parent 8442 535a00ca0d35
permissions -rw-r--r--
ASA, fruit01: Show mission text when reaching launch pad with enemies

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