tools/templates/pixlabel.h
author koda
Mon, 25 Feb 2013 19:48:35 +0100
branchphysfslayer
changeset 8558 e96bf10216ef
parent 8442 535a00ca0d35
permissions -rw-r--r--
on windows fpc-linking is the funniest of all

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