tools/templates/pixlabel.h
author unc0rr
Sun, 17 Dec 2017 21:09:59 +0100
branchqmlfrontend
changeset 12856 95d903b976d0
parent 8442 535a00ca0d35
permissions -rw-r--r--
Start removing flib functionality

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