tools/templates/pixlabel.h
author nemo
Sun, 05 Feb 2012 17:35:52 -0500
changeset 6629 3028b9293b54
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
ok. really fix by toggling back to ready. At least, I think this should do it...

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