tools/templates/pixlabel.h
author Medo <smaxein@googlemail.com>
Fri, 30 Nov 2012 15:16:14 +0100
branchflibqtfrontend
changeset 8135 0401d7c216e0
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Fixed flib_weaponset_create creating an empty weaponset (for real this time :P)

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