tools/templates/pixlabel.h
author koda
Wed, 02 Nov 2011 16:31:16 +0100
changeset 6261 7050772ae46a
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
remove the need of saving the calling controller (disabling stats, but they were already broken by a previous commit)

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