tools/templates/pixlabel.h
author nemo
Tue, 13 Sep 2011 00:13:01 -0400
changeset 5885 ae257409bcff
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Remove extra graphical resweeps, and smooth prior to despeckling. Was getting odd desync here without Land[] seemingly incorrect at end of passes. Just removing seems to fix, and code wasn't that good an idea in its prior state anyway.

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