tools/templates/pixlabel.h
author nemo
Wed, 24 Aug 2011 15:09:41 -0400
changeset 5676 a655dfab27d7
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Scripting changes. Add override of mapgen, templatefilter. Expose waterline, add "GetAmmoCount". Default to amNothing in uAmmos if entry is not found.

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