tools/templates/pixlabel.h
author koda
Thu, 03 Nov 2011 05:09:05 +0100
changeset 6268 d773867f93db
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
double two finger tap to make screenshot on ios (though folder is not yet accessible)

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