tools/templates/pixlabel.h
author Wuzzy <almikes@aol.com>
Mon, 02 Oct 2017 17:54:07 +0200
changeset 12636 b4ebc6779810
parent 8442 535a00ca0d35
permissions -rw-r--r--
Add a bunch of announcer messages in English Thanks, KoBeWi!

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