tools/templates/pixlabel.h
author sheepluva
Mon, 20 Jan 2014 10:40:59 +0100
changeset 10025 ec966363adbe
parent 8442 535a00ca0d35
permissions -rw-r--r--
new cmake option NOVERSIONINFOUPDATE -- to be used if source is in a git/repo that is NOT the hedgewars repo

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