tools/templates/pixlabel.h
author Wuzzy <almikes@aol.com>
Wed, 23 Nov 2016 23:54:55 +0100
changeset 12049 030464f34d47
parent 8442 535a00ca0d35
permissions -rw-r--r--
Tweak flags used in all missions to fit more to the theme

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