tools/templates/pixlabel.h
author antonc27 <antonc27@mail.ru>
Sat, 08 Aug 2015 21:25:59 +0200
branchios-revival
changeset 11084 9ff03eddd950
parent 8442 535a00ca0d35
permissions -rw-r--r--
- Missed pascal source files added to project

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