tools/templates/pixlabel.h
author nemo
Tue, 28 Jul 2009 22:04:04 +0000
changeset 2285 6746bda385e8
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Avoid /0 in SetScale - not sure this is right way to do it though. But just to try and stop crashing prg's machine

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