tools/templates/pixlabel.h
author nemo
Mon, 08 Nov 2010 23:28:39 -0500
changeset 4226 b39ca9d087a2
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
compensate a bit for the reduction in power by increasing target height, avoids bouncing off terrain.

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