tools/templates/pixlabel.h
author nemo
Sun, 27 May 2018 20:32:06 -0400
changeset 13411 6a3f94fe2636
parent 8442 535a00ca0d35
permissions -rw-r--r--
allow freezing airmines outside the Land area too. Make the top of frozen mine a little flatter

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