tools/templates/pixlabel.h
author antonc27 <antonc27@mail.ru>
Thu, 15 Oct 2015 21:58:30 +0200
branchios-revival
changeset 11210 22f2e072d31e
parent 8442 535a00ca0d35
permissions -rw-r--r--
- Target button added to mobile touch controls Note: Maybe also need to add it to HedgeEditor, dunno...

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