tools/templates/pixlabel.h
author nemo
Thu, 15 Sep 2011 22:53:47 -0400
changeset 5926 09bbc7b88714
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
2 extra steps was still occasionally causing problems w/ edge cases. hopefully 3 should do the trick

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