tools/templates/pixlabel.h
author Colin Rice (clr_)
Wed, 23 Mar 2011 14:15:20 +0100
changeset 5042 f26c5eb040af
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Patch for issue #165: Portal: don't allow embedding Objects in ground (or porting them to impassable/invalid locations)

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