tools/templates/pixlabel.h
author unc0rr
Sat, 07 Nov 2015 23:44:49 +0300
changeset 11320 556eafd1443a
parent 8442 535a00ca0d35
permissions -rw-r--r--
Store some more details on game config in the database

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