tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Tue, 31 Oct 2017 18:30:53 +0100
changeset 12811 de3cbbb09915
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix host not re-sending ammo scheme after editing an existing ammo scheme This caused clients to start with an incompatible ammo loadout.

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