tools/templates/pixlabel.h
author unc0rr
Tue, 01 Sep 2009 17:56:25 +0000
changeset 2341 408edb2f254c
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Implement room delegation (not tested, only one predefined name to rename room)

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