tools/templates/pixlabel.h
author unC0Rr
Wed, 17 Nov 2010 16:31:30 +0300
changeset 4355 4554c4df9f1a
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
A program which finds a cycles in units dependencies to run: unitCycles `ls *.pas`

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