tools/templates/pixlabel.h
author Xeli
Thu, 26 Jan 2012 22:19:52 +0100
changeset 6601 5965e2927b3d
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
fixed the ammo menu on android, on tablets all weapons are 'choosable' and on phones I've moved the ammomenu up a bit

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