tools/templates/pixlabel.h
author sheepluva
Sun, 30 Apr 2017 00:28:17 +0200
changeset 12386 e4f8bf43224d
parent 8442 535a00ca0d35
permissions -rw-r--r--
fix build. sorry 'bout that.

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