tools/templates/pixlabel.h
author Periklis Ntanasis <pntanasis@gmail.com>
Tue, 27 Aug 2013 02:41:28 +0300
branchspacecampaign
changeset 9585 d079e1cc2806
parent 8442 535a00ca0d35
permissions -rw-r--r--
fixed bug in cosmos that permitted user to go to moon without collecting the saucer and removed ammo that was added for debug purposes

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