tools/templates/pixlabel.h
author koda
Thu, 02 Jul 2009 00:58:46 +0000
changeset 2218 59a9bebc4988
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
-Smaxx' solution for compiling frontend with static libs in windows -reverted to realloc() for more compatibility

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