tools/templates/pixlabel.h
author unc0rr
Fri, 02 Sep 2011 12:06:24 +0400
changeset 5734 d710db47a1ef
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Implement save button on game statistics page. I'm surprised I did it. Closes issue #264

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