tools/templates/pixlabel.h
author nemo
Thu, 01 Jul 2010 14:17:22 -0400
changeset 3602 99c93fa258d6
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Restore prior optimisation with the wildly out-of-bounds tx in LandDirty removed

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