tools/templates/pixlabel.h
author Periklis Ntanasis <pntanasis@gmail.com>
Wed, 18 Sep 2013 04:24:10 +0300
branchspacecampaign
changeset 9640 a6a903a6c2b3
parent 8442 535a00ca0d35
permissions -rw-r--r--
some changes regarding hp save in cosmos and moon

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