tools/templates/pixlabel.h
author m4tx
Sun, 11 Dec 2011 23:15:06 +0300
changeset 6525 6c97379c584b
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
[GCI] backz task: unify the back button functionality, avoid using the save button

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