tools/templates/pixlabel.h
author unc0rr
Wed, 04 Apr 2012 18:00:46 +0400
changeset 6855 807156c01475
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.

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