tools/templates/pixlabel.h
author koda
Mon, 24 Dec 2012 15:41:45 +0100
changeset 8323 ab0b618bdf13
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
get executable directory at runtime rather than configure time

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