tools/templates/pixlabel.h
author koda
Wed, 18 Jul 2012 15:05:56 +0100
changeset 7397 833fc211ca2d
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
allow FPFLAGS and GHFLAGS only in cmakes able to support them

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