tools/templates/pixlabel.h
author sheepluva
Wed, 18 Jun 2014 01:37:28 +0200
changeset 10324 5d90d8ca9657
parent 8442 535a00ca0d35
permissions -rw-r--r--
tweak code of DrawTextureFromRectDir a bit, removing issue with different x offset depending on dir. also removing the workaround wrt that issue in the frozen hog code

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