tools/templates/pixlabel.h
author antonc27 <antonc27@mail.ru>
Wed, 21 Oct 2015 23:46:11 +0200
branchios-revival
changeset 11228 24bafdcf1860
parent 8442 535a00ca0d35
permissions -rw-r--r--
- 'Press the target button to mark the target' message is localizable 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);
};