tools/templates/pixlabel.h
author nemo
Mon, 26 Mar 2012 20:29:37 -0400
changeset 6828 6a5d33bff0b0
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
At mikade's request. give scripting access to the map name prior to override.

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