tools/templates/pixlabel.h
author unc0rr
Tue, 27 Oct 2015 23:04:15 +0300
changeset 11250 09a2d3988569
parent 8442 535a00ca0d35
permissions -rw-r--r--
Also pass script information alongwith winner/achievements info, so that we could potentially have per mode ratings

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