tools/templates/pixlabel.h
author koda
Sun, 13 Nov 2011 19:32:42 +0100
changeset 6362 ceacd1b61833
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
modify ReleaseSound so that it performs a partial release of unused sounds, useful for responding to memory warnings

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