tools/templates/pixlabel.h
author unc0rr
Mon, 06 Aug 2012 23:30:58 +0400
changeset 7511 1841d5cf899f
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
More mess in pas2c: - Store rendered type declaration of identifier - Convert 'for' cycles properly (well, not sure, but I tried :P) into 'do .. while()'

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