tools/templates/pixlabel.h
author Xeli
Fri, 09 Sep 2011 04:39:17 +0200
branchhedgeroid
changeset 5733 5ab22736bdb6
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Fixed a major bug (related to pointers) which also solves the stuttering when zooming in and out

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