tools/templates/pixlabel.h
author sheepluva
Mon, 09 Jun 2014 20:14:11 +0200
changeset 10260 25155aaede77
parent 8442 535a00ca0d35
permissions -rw-r--r--
clean up image loading a bit. gets rid of useless "Passed NULL data source" or PhysFS file not found errors

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