tools/templates/pixlabel.h
author nemo
Tue, 13 Mar 2012 21:51:50 -0400
changeset 6782 33009ac4de80
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
For reasons I can't fathom, if this portion isn't commented out, the AI completely fails w/ a weaponset of only firepunch. Something is seriously screwed up in RateShove, but after reading it many times, I still don't see 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);
};