tools/templates/pixlabel.h
author koda
Sun, 22 Apr 2012 02:10:44 +0200
changeset 6906 6f5e1e64f106
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
fix compiling hw for ios (was looking for the wrong math.h and used an old variable name)

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