tools/templates/pixlabel.h
author Wolfgang Steffens <WolfgangSteff@gmail.com>
Mon, 28 May 2012 10:38:27 +0200
changeset 7138 f8248bcba8f1
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
moved generic matrix code to uMatrix.pas updated shader and client logic to use a mat4 rather than ftransform or gl_ModelViewProjectionMatrix.

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