tools/templates/pixlabel.h
author unc0rr
Sat, 13 Feb 2016 00:36:38 +0300
changeset 11545 86528b0cd491
parent 8442 535a00ca0d35
permissions -rw-r--r--
detectMap() rewrite with more sane approach, also check waypoints placement to avoid cheating

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