tools/templates/pixlabel.h
author unc0rr
Tue, 17 May 2016 23:18:08 +0300
branchqmlfrontend
changeset 11832 8c71c5a1172f
parent 8442 535a00ca0d35
permissions -rw-r--r--
- Add state to engine callback for it to know what engine is sending - Display suggested hogs number in preview

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