tools/templates/pixlabel.h
author smaxx
Sat, 18 Sep 2010 12:35:58 +0200
changeset 3876 3dd031a8b395
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Frontend: * Changed team color handling to use red as first color and make it easier to add more colors in the future

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