tools/templates/pixlabel.h
author sheepluva
Thu, 22 Sep 2011 23:20:11 +0200
changeset 5993 412ada3d2041
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
randomly selected static/mission maps weren't properly reported to others in room (only new seed was)

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