tools/templates/pixlabel.h
author koda
Sun, 13 Mar 2011 18:23:51 +0100
changeset 5004 2efa6a414518
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
update some sdl-1.3 bindings (working up to rev 5296)

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