tools/templates/pixlabel.h
author smxx
Thu, 04 Feb 2010 22:29:19 +0000
changeset 2751 2a3091b13ce4
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Engine: * Force 'cpu' flag for AI players; keep players from using it * Updated english Locale/de.txt Graphics: * Added first pack of community submitted flags (cm_*.png) * Added some new hats

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