tools/templates/pixlabel.h
author Urbertar@gmail.com
Sat, 23 Feb 2013 19:33:26 +0200
branchicegun
changeset 8551 32da16da4e2a
parent 8442 535a00ca0d35
permissions -rw-r--r--
Add frozen land texture

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