tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Fri, 16 Mar 2018 16:35:08 +0100
changeset 13227 26c739440bef
parent 8442 535a00ca0d35
permissions -rw-r--r--
Some padding tweaks in options and team editor pages. Fixes insane width of context menu of hog name line edit

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