tools/templates/pixlabel.h
author sheepluva
Tue, 18 Oct 2011 14:28:50 +0200
changeset 6147 b4d7d8d62feb
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
feature-pimpin'-up the chat input line in frontend: ESC key will clear input TAB key will expand names and commands

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