tools/templates/pixlabel.h
author nemo
Sat, 23 May 2009 02:17:22 +0000
changeset 2090 4edb0d49a42d
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
prevent unc0rr from getting clever with jackhammer too. bring blowtorch into line with the other - should be more fun 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);
};