tools/templates/pixlabel.h
author nemo
Fri, 24 Jul 2009 19:42:06 +0000
changeset 2272 c59656d7b1de
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Add water opacity to theme - defaulting to 50% opaque on all themes but Eyes (80%) and Underwater (100%)

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