tools/templates/pixlabel.h
author koda
Wed, 06 Apr 2011 00:29:49 +0200
changeset 5109 6d2e8a24277e
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
strangely enough, the new sdl rotation code is incompatible with our system... this is a workaround that should hold up until their code becomes more stable

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