tools/templates/pixlabel.h
author unc0rr
Thu, 10 May 2012 13:45:47 +0400
changeset 7040 4aff2da0d0b3
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Render function variables in struct with no mangling. 13 C units are compilable now.

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