tools/templates/pixlabel.h
author sheepluva
Thu, 06 May 2010 09:25:13 +0000
changeset 3432 83cef0f08a86
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
* get rid of some fpc hints (redundant/superfluous includes) * fix broken if causing segfault (whoops :D)

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