tools/templates/pixlabel.h
author Xeli
Thu, 04 Aug 2011 17:17:21 +0200
branchhedgeroid
changeset 5452 3edc3e3b8cdc
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Created callbacks to give the frontend information of maxteams/hogs

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