tools/templates/pixlabel.h
author nemo
Tue, 24 Jul 2012 18:53:42 -0400
changeset 7423 ec8f690f3e0f
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
workaround - not great though since they probably should have proper initial values like they used to have in uConsts. leaving a note to koda

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