tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Tue, 06 Feb 2018 04:06:49 +0100
changeset 12899 2bcd3f48ddd0
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix error 52: Move amMinigun.png to Graphics/Hedgewars

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