tools/templates/pixlabel.h
author koda
Mon, 25 Feb 2013 00:20:09 +0100
branchphysfslayer
changeset 8549 af104e59ea8e
parent 8442 535a00ca0d35
permissions -rw-r--r--
due to popular demand, add a compile time switch to manually select whether to build the internal physfs (default) or not

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