tools/templates/pixlabel.h
author smxx
Fri, 19 Feb 2010 00:51:37 +0000
changeset 2827 45817d8386c7
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Engine: * New visual gear: Shell * Shooting Shotgun and Sniper Rifle now throws out shells * Added sound for (re-)loading Sniper Rifle Installer: * Updated vendor name to "Hedgewars Project"

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