tools/templates/pixlabel.h
author nemo
Mon, 13 May 2013 22:40:32 -0400
changeset 8987 47cf32305d99
parent 8442 535a00ca0d35
permissions -rw-r--r--
some saucer thing for firing weps underwater and aiming and such. bit drunk and sleepy so testing I guess

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