tools/templates/pixlabel.h
author vitiv <nikita.utiu@gmail.com>
Thu, 03 Jan 2013 17:14:14 +0200
changeset 8356 b5cf1f29ab14
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Tweaked the resolution option layout.

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