tools/templates/pixlabel.h
author nemo
Wed, 05 Jun 2013 12:47:33 -0400
changeset 9139 2ae44c4381cd
parent 8442 535a00ca0d35
permissions -rw-r--r--
Restore CurAmmoType check as well, that was removed in r8f317ba10675 when trying to fix aiming during alt attack. This probably fixes bug #657

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