tools/templates/pixlabel.h
author sheepluva
Tue, 29 Jun 2010 23:25:42 +0200
changeset 3591 c447d5218f6f
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
bee: * make be correct its course only 62.5 times per second (instead of 1000) * cache values (e.g. that one for speed)

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