tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Tue, 27 Mar 2018 17:32:23 +0200
changeset 13284 b504131f7405
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix team files and settings not saving properly, and remove FileEngine stuff from DLC This is done by using absolute paths and removing physfs://

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