tools/templates/pixlabel.h
author sheepluva
Thu, 22 Sep 2011 14:02:44 +0200
changeset 5990 578978418fe5
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
let frontend send (copypasta) multi-line messages line by line to avoid protocol violation

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