tools/templates/pixlabel.h
author koda
Wed, 21 Sep 2011 02:05:42 +0200
changeset 5976 306cedbeb213
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
fixed several 'retina display' images and added a bunch more (though just from upscaling the normal ones; might be nice to have 'em redrawn at a real higher resolution)

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