tools/templates/pixlabel.h
author Wuzzy <almikes@aol.com>
Thu, 05 Oct 2017 02:54:17 +0200
changeset 12651 5e115ed19e27
parent 8442 535a00ca0d35
permissions -rw-r--r--
Destroy rope when attempting to shoot it through wrap / bouncy world edge This fixes a variety of graphical glitches

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