tools/templates/pixlabel.h
author unc0rr
Tue, 31 Jul 2012 23:29:00 +0400
changeset 7465 c2dcf97ca664
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Okay, this is workaround over ping timeouts problem on the server. Could make server crash if recieve thread wakes up after second ping timeout event.

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