tools/templates/pixlabel.h
author Xeli
Sat, 12 Nov 2011 18:02:55 +0100
branchhedgeroid
changeset 6338 633af6fec34f
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
and now it even works for sdl12 \o/

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