tools/templates/pixlabel.h
author antonc27 <antonc27@mail.ru>
Sat, 15 Aug 2015 20:48:13 +0200
branchios-revival
changeset 11133 fa3d227fb308
parent 8442 535a00ca0d35
permissions -rw-r--r--
- Fix for retrieving 'Maze' preview genration Note: We use now GCD instead of pthread for launch preview generation from engine side (it is now done with RunEngine, not direct call to GenLandPreview) Note 2: For a moment LandPreview without Alpha used

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