tools/templates/pixlabel.h
author palewolf
Sat, 17 Apr 2010 23:03:52 +0000
changeset 3355 dc9e61e67484
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
cWindSpeed recalculation assumed GetRandom returns a value between 0.0-1.0 while in fact is in the 0.0-0.5 range; Halve cMaxWindSpeed to compensate.

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