tools/templates/pixlabel.h
author Medo <smaxein@googlemail.com>
Sun, 19 Aug 2012 15:05:23 +0200
changeset 7576 65d29988fd3d
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Fix engine crashes on game end - frontlib now waits until the engine actually disconnects - engine does not write round-end stats to stdout anymore on mobile (caused crash) - Removed HWTerminate function binding for android (not threadsafe, better send "eforcequit" over IPC for the same effect)

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