tools/templates/pixlabel.h
author nemo
Fri, 05 Nov 2010 14:49:44 -0400
changeset 4131 e89d11f6361c
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
add F1-F10 to the default binds to fix weapon selection in trainings/missions and such

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