tools/templates/pixlabel.h
author koda
Fri, 06 Dec 2013 00:56:56 +0100
branchsdl2transition
changeset 9709 9315727c0f1d
parent 8442 535a00ca0d35
permissions -rw-r--r--
Qt and SDL2 do not play nice on osx apparently

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