tools/templates/pixlabel.h
author Mitchell Kember <mk12360@gmail.com>
Sun, 02 Dec 2012 17:44:34 -0500
changeset 8192 81da6576b0c3
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Make video recording options have fixed size and merge with spinbox->combobox change.

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