tools/templates/pixlabel.h
author unc0rr
Fri, 05 Jan 2018 21:43:33 +0100
branchqmlfrontend
changeset 12882 c9418f57fcbc
parent 8442 535a00ca0d35
permissions -rw-r--r--
Comment out functions that don't need to be called for engine in frontend window

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