tools/templates/pixlabel.h
author sheepluva
Sun, 08 Apr 2018 00:52:22 +0200
changeset 13315 3546bb36c8fb
parent 8442 535a00ca0d35
permissions -rw-r--r--
cleanup whitespaces, add braces to for loops also throw in a break for good measure

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