tools/templates/pixlabel.h
author antonc27 <antonc27@mail.ru>
Sat, 08 Aug 2015 20:51:12 +0200
branchios-revival
changeset 11079 2e025063ca12
parent 8442 535a00ca0d35
permissions -rw-r--r--
- Xcode projects updated to recommended settings (auto done by Xcode) - Deployment target now 7.0

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