tools/templates/pixlabel.h
author koda
Wed, 19 Dec 2012 19:33:49 +0100
changeset 8315 b3875e10a8ae
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
edit rpath manually, allowing frontend+libengine to run on linux too

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