tools/templates/pixlabel.h
author nemo
Mon, 14 Nov 2011 16:17:58 -0500
changeset 6377 3ce19204b14b
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Since I'm storing the text string anyway, might as well recreate captions on resize as well

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