tools/templates/pixlabel.h
author nemo
Sat, 18 Jan 2014 08:09:55 -0500
changeset 10012 82dd9f0c88f7
parent 8442 535a00ca0d35
permissions -rw-r--r--
Make poison damage possibly variable (might as well since effects is a count). Scripts might find it handy.

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