tools/templates/pixlabel.h
author smaxx
Tue, 14 Sep 2010 18:41:37 +0200
changeset 3865 0b1c426b035f
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Frontend: * Removed grid lines from room list * Added map icons to room list and map selection (for easier identifying; have to be drawn) * Removed multi row selection from room list

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