tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Wed, 08 Aug 2018 13:34:39 +0200
changeset 13640 cb0191394133
parent 8442 535a00ca0d35
permissions -rw-r--r--
Use full string for sidFuel and avoid string concatenation Fuel as in fuel for saucer, landgun, flamethrower, icegun. Old string was built with like this: sidFuel + ": " + fuel + "%". New string us built with proper format string instead

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