tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Wed, 24 Oct 2018 21:07:26 +0200
changeset 13956 2568fa516733
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix hog can drop more than 2 s. mines if first one was dropped from utility, then stop using that utility Fixes bug #701.

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