tools/templates/pixlabel.h
author Xeli
Sun, 05 Feb 2012 15:55:15 +0100
changeset 6625 2d8c5815292f
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
some refactoring + you can now tap on the ammo menu to select a weapon

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