tools/templates/pixlabel.h
author nemo
Wed, 06 Oct 2010 15:37:56 -0400
changeset 3929 9a4bbc1f67a2
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Inline most of uFloat (saves ~7.5% opcount on a test game), inline a few very short candidates in uMisc, comment out some unused functions in uMisc

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