tools/templates/pixlabel.h
author EJ <eivind.jahren@gmail.com>
Mon, 21 Mar 2011 21:04:20 +0300
changeset 5030 42746c5d4a80
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Changed the standard show function to Text.Show.ByteString, and misc. ByteString related changes in gameServer.

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