tools/templates/pixlabel.h
author koda
Wed, 12 Jun 2013 11:17:54 +0200
changeset 9208 acb2492288e5
parent 8442 535a00ca0d35
permissions -rw-r--r--
heavily rework lua discovery and linking, needs testing but it's more similar to what we do for other libraries now

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