tools/templates/pixlabel.h
author sheepluva
Thu, 03 May 2012 19:00:17 +0200
changeset 7018 6a1f46c026bf
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
some tweaks/fixes/etc to the map preview and reload stuff also fixed an old bug of a "stuck random/drawn map preview" when changing maps quickly

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