tools/templates/pixlabel.h
author koda
Sun, 25 Oct 2009 10:38:09 +0000
changeset 2581 10f03732ea60
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
convert 24 bits images to 32 (faster to manage)

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