tools/templates/pixlabel.h
author nemo
Thu, 24 May 2018 13:04:56 -0400
changeset 13403 9c9d29be9e00
parent 8442 535a00ca0d35
permissions -rw-r--r--
make all bullets function similar to machinegun bullets (can hit/shove objects without checkin)

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