tools/templates/pixlabel.h
author nemo
Sun, 03 Mar 2013 20:59:27 -0500
changeset 8634 5dcb1dc9e01b
parent 8442 535a00ca0d35
permissions -rw-r--r--
fix portal/hammer interaction, ban freezer from portal

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