tools/templates/pixlabel.h
author sheepluva
Tue, 12 Jan 2016 22:12:16 +0100
changeset 11506 2d72489cc5b6
parent 8442 535a00ca0d35
permissions -rw-r--r--
finish SDL2-window focus change detection code

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