tools/templates/pixlabel.h
author koda
Thu, 28 Feb 2013 22:47:42 +0100
changeset 8608 50cc0131b109
parent 8442 535a00ca0d35
permissions -rw-r--r--
move weapons line away from hwconsts.h so that modifying it doesn't needlessly recompile everything, introduce a way to try documenting which weapons each number represents

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