tools/templates/pixlabel.h
author nemo
Tue, 09 Dec 2014 22:56:34 -0500
changeset 10645 b8c73bacb31e
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix in-flight colouring of land spray, make it use tint when added to land too (lua might find that handy), tweak climbhome cake delay slightly

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