tools/templates/pixlabel.h
author koda
Thu, 25 Oct 2012 05:06:00 +0200
changeset 7817 6cc558a69b58
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
countless small optimisation for cmake, output messages are now coherent (mostly) and the options get fully respected (eg. skipping library search if not activated)

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