tools/templates/pixlabel.h
author koda
Sat, 24 Sep 2011 00:54:47 +0200
changeset 6000 dbcebcd3d79f
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
ios frontend: sounds and music have their own class now (with caching\!) instead of being spread here and there (exploiting class methods like a true oop pro)

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