tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Mon, 12 Feb 2018 15:50:49 +0100
changeset 12980 263d006c56a9
parent 8442 535a00ca0d35
permissions -rw-r--r--
Battalion: Clean up and remove dead code

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