tools/templates/pixlabel.h
author nemo
Sat, 12 Nov 2011 11:02:02 -0500
changeset 6329 9eb6c4a8d633
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Eh. n/m. Even when I did 1 shl, didn't seem right, and anyway, it isn't much of a mask if there are 16 categories and we use 10, of which those are the most common.

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