tools/templates/pixlabel.h
author unc0rr
Thu, 29 Dec 2011 23:02:40 +0300
changeset 6541 08ed346ed341
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Send full room info on room add and update events. Less(?) traffic, but current frontend doesn't behave good with this change to server.

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