tools/templates/pixlabel.h
author nemo
Thu, 08 Sep 2011 21:18:44 -0400
changeset 5818 d071162d550d
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
There. Push this back on to unc0rr. This effect can still desync, 'cause it always could, but at least now the two are linked w/o argument I think.

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