tools/templates/pixlabel.h
author koda
Tue, 30 Apr 2013 01:43:00 +0200
branchcmake_pascal
changeset 8863 9774ad4fe170
parent 8442 535a00ca0d35
permissions -rw-r--r--
fpc sysroot should belong to user configuration

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