tools/templates/pixlabel.h
author Xeli
Sun, 19 Feb 2012 16:51:22 +0100
changeset 6723 b77e2d4d664b
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
check if the widget is shown before checking if the finger is on the widget

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