tools/templates/pixlabel.h
author unc0rr
Tue, 22 Jan 2013 00:24:44 +0400
changeset 8422 ec41194d4444
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Okay, let's try not trust even room admin on this

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