tools/templates/pixlabel.h
author nemo
Fri, 24 Aug 2012 19:55:43 -0400
changeset 7595 bbac3c0f0c68
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Hey. How's this? It makes it harder to get stuck in the vertical rope position, prevents the wall trick, and also I think makes it easier to unglue a horizontal rope?

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