tools/templates/pixlabel.h
author sheepluva
Sun, 25 Sep 2011 20:54:51 +0200
changeset 6026 2833862a7e00
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
get rid of that annoying 'Invalid state: in Lobby' message after room being closed or player being kicked from room. (the frontend always tried to leave the room he already left again)

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