tools/templates/pixlabel.h
author unc0rr
Tue, 21 Jun 2011 16:42:04 +0400
changeset 5244 1b408b965c01
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Don't stick to enemies when there are more than 2 clans

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