tools/templates/pixlabel.h
author sheepluva
Fri, 17 Jan 2014 15:32:50 +0100
changeset 10001 ec523563826e
parent 8442 535a00ca0d35
permissions -rw-r--r--
disallow currenthh arrow to go offscreen, always point in direction of the hog - this should make the life of new players easier

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