tools/templates/pixlabel.h
author nemo
Wed, 09 Aug 2017 15:36:05 -0400
changeset 12448 8b89fe2115ad
parent 8442 535a00ca0d35
permissions -rw-r--r--
So, was trying to allow spawning on level surfaces of ice but not girders, but seems to be failing. We'll call this WIP

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