tools/templates/pixlabel.h
author nemo
Sun, 05 May 2013 22:50:17 -0400
changeset 8962 9780e79619ed
parent 8442 535a00ca0d35
permissions -rw-r--r--
So. This at least should make the math more accurate, even if it still doesn't appear to resolve prob w/ AI attacks

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