tools/templates/pixlabel.h
author sheepluva
Sun, 31 Oct 2010 02:50:15 +0100
changeset 4038 8972dd38bbad
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
potential fix for issue #86: 'Objects behind a portal will sometimes go through the portal.' please test

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