tools/templates/pixlabel.h
author nemo
Sat, 30 Oct 2010 22:48:05 -0400
changeset 4042 dfeb8e348a09
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Restore pending proper removal and cleanup from frontend. Otherwise we'll just confuse the users.

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