tools/templates/pixlabel.h
author nemo
Mon, 01 Nov 2010 17:12:32 -0400
changeset 4083 830d1f4eb517
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Add a misc folder to contain some files for attempting a local registration of hwengine against hedgewars demo and save files on request. Still needs the addition of the frontend code to mkdir -p in .local, copy the files, call update-mime-info and such

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