tools/templates/pixlabel.h
author Periklis Ntanasis <pntanasis@gmail.com>
Sat, 10 Aug 2013 00:00:41 +0300
branchspacecampaign
changeset 9498 54bfc44f9554
parent 8442 535a00ca0d35
permissions -rw-r--r--
fixed bug that make hog not able to move

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