tools/templates/pixlabel.h
author alfadur
Fri, 09 Mar 2018 23:34:46 +0100
changeset 13151 deab88f1f6f7
parent 8442 535a00ca0d35
permissions -rw-r--r--
Improve appearance of bullet trails, slight fade out at beginning This especially improves the appearance of minigun bullet trails

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