tools/templates/pixlabel.h
author nemo
Wed, 09 Oct 2013 20:16:34 -0400
changeset 9505 56e0cca99e20
parent 8442 535a00ca0d35
permissions -rw-r--r--
Allow girder construction to wrap. Makes wrapping w/ large bodies of water a bit more interesting.

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