tools/templates/pixlabel.h
author nemo
Sun, 11 Sep 2011 09:46:22 -0400
changeset 5851 e6151aca2d7c
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Focus camera on moving current hog (probably more important to player). Should make tumbler, sine gun play, attacking off rope and saucer more playable. Also fix a typo in prior offset, and compensate for zoom.

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