tools/templates/pixlabel.h
author Wuzzy <almikes@aol.com>
Mon, 02 Oct 2017 20:59:40 +0200
changeset 12633 a791a08062d6
parent 8442 535a00ca0d35
permissions -rw-r--r--
Create 5 human teams + 5 AI teams on first start

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