tools/templates/pixlabel.h
author Wuzzy <almikes@aol.com>
Thu, 17 Nov 2016 14:05:12 +0100
changeset 11904 930f57e70b49
parent 8442 535a00ca0d35
permissions -rw-r--r--
Capture The Flag: Fix flag of first team spawning at second hog (issue #9)

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