tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Sun, 29 Oct 2017 19:06:02 +0100
changeset 12798 fdb3730aa0e2
parent 8442 535a00ca0d35
permissions -rw-r--r--
ACF6: Make sure player only gets portal gun at the portal sequence, and not a pile full of weapons and ropes

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