tools/templates/pixlabel.h
author Xeli
Sat, 24 Mar 2012 15:52:07 +0100
changeset 6812 929b467c7277
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
fixed some typo's. LUA_LIBRARY now points to the right name, regardless of the host machine. Running cmake after a bad attempt (ie forgot to add paths to PATH) now works rather than having to clean the cache

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