tools/templates/pixlabel.h
author Wuzzy <almikes@aol.com>
Wed, 04 May 2016 18:14:25 +0200
changeset 11813 ffe6e1344ebd
parent 8442 535a00ca0d35
permissions -rw-r--r--
Team editor: Make bot icons and graves more visible in closed drop-down lists, smaller botlevel images

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