tools/templates/pixlabel.h
author nemo
Thu, 30 Jun 2011 18:20:41 -0400
changeset 5364 30752b2e99b3
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Sweep all pixels at 0 or 1 neighbours, whether damaged or not. Intended to handled output of Smooth, might be nice to cut down on the counting somehow though.

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