tools/templates/pixlabel.h
author Mitchell Kember <mk12360@gmail.com>
Tue, 04 Dec 2012 16:53:47 -0500
changeset 8229 251f38da9935
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Cleaned up frontend options a bit and added a couple WhatsThis messages.

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