tools/templates/pixlabel.h
author sheepluva
Fri, 15 Aug 2014 08:23:15 +0200
changeset 10388 665d8b699d35
parent 8442 535a00ca0d35
permissions -rw-r--r--
part of patch in issue #803 (ty) - this hopefully should fix issues with cmake Makefiles trying to run "Qt4::lrelease" in the shell

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