tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Fri, 04 May 2018 01:39:22 +0200
changeset 13377 03e4d9b5b09c
parent 8442 535a00ca0d35
permissions -rw-r--r--
Continental supplies: Upside-Down World special now works in cave maps as well In cave maps, the hog is teleported just below the border. A bit of land is erased, too.

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