tools/templates/pixlabel.h
author nemo
Fri, 07 Jun 2013 14:44:34 -0400
changeset 9148 78c699d8fdfd
parent 8442 535a00ca0d35
permissions -rw-r--r--
move 0.01 to the end to avoid increase damage fail on small values like fire. thanks to hedgewars wiki for noting this for fire damage.

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