tools/templates/pixlabel.h
author unc0rr
Fri, 02 Sep 2011 12:27:15 +0400 (2011-09-02)
changeset 5735 08ac2d557392
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Remove toLocal8Bit() conversion of file name as Qt should handle filenames on its own. Helps with filename on Windows, could help with issue #189.
#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);
};