tools/templates/pixlabel.h
author koda
Wed, 03 Feb 2010 23:36:42 +0000
changeset 2743 39d097ac2276
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
implement transition in the way i had in mind

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