tools/templates/pixlabel.h
author nemo
Sun, 20 Jan 2013 20:42:20 -0500
changeset 8414 c1ac0b64315e
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Start piano higher (piano on maps that matched land_height was really weird before). Experiment w/ trying to make birdy shrink into distance to avoid odd birdy vanishes if tracking it.

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