tools/templates/pixlabel.h
author unc0rr
Wed, 21 Nov 2012 13:33:27 +0400
changeset 8085 6c059add1560
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Take care of parameter passed to FileEngine::fileName. Fixes problem with weird paths on windows.

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