tools/templates/pixlabel.h
author Wolfgang Steffens <WolfgangSteff@gmail.com>
Thu, 09 Jan 2014 22:38:40 +0400
branchgl2
changeset 7384 85b022855f9a
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Import temp.diff which is a try to fix glitches with textures edges

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