tools/templates/pixlabel.h
author belphegorr <szabibibi@gmail.com>
Fri, 10 Aug 2012 00:20:21 +0300
changeset 7438 195f9cbd6df6
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Modified Animate.lua: Modified event removal function to check if removed event is before current one, added optional parameter to RemoveEventFunc for optional checking of parameter list identicity.

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