tools/templates/pixlabel.h
author koda
Mon, 10 Oct 2011 02:50:01 +0200
changeset 6115 485cfecadc9a
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
HUGE refactoring of the ipad interface, finally understood how to use interface builder with custom uiviewcontrollers, as well as converted some uitableviewcontrollers to uiviewcontrollers for simplicity

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