tools/templates/pixlabel.h
author nemo
Fri, 12 Jun 2009 00:39:36 +0000
changeset 2154 3d2917be12c3
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Change default output to stderr since /tmp doesn't exist under windows and is useless under iphoneos, add a couple of extra parameters

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