tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Mon, 12 Feb 2018 23:37:08 +0100
changeset 12995 8dd95c095882
parent 8442 535a00ca0d35
permissions -rw-r--r--
Make team chat its own control and use [U] key by default Why [U] and not [Y]? Because [Y] is already occupied by Confirm.

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