tools/templates/pixlabel.h
author unc0rr
Thu, 08 Nov 2018 21:57:05 +0100
changeset 14197 5ad911992460
parent 8442 535a00ca0d35
permissions -rw-r--r--
A bit of rethinking of game messages and command

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