tools/templates/pixlabel.h
author sheepluva
Mon, 11 Apr 2011 01:30:43 +0200
changeset 5139 090a8b8d1083
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
grenade back to old damage, but from now on explosions assume they are not closer to a gear's center than the gear's radius

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