tools/templates/pixlabel.h
author nemo
Sun, 23 Jun 2013 13:35:26 -0400
changeset 9247 68bbe56badcc
parent 8442 535a00ca0d35
permissions -rw-r--r--
poor AI thought he should avoid stepping on frozen crates, and jump for non-frozen ones

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