tools/templates/pixlabel.h
author Xeli
Sat, 08 Oct 2011 14:52:16 +0200
branchhedgeroid
changeset 6037 8cdc7bc3e38c
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Allow for multicore compiling on quadcores, everyone has one right? :P It has perfomance benifits on single cores too so it's all good =)

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