tools/templates/pixlabel.h
author sheepluva
Fri, 13 Nov 2015 23:46:19 +0100
branchsdl2transition
changeset 11378 011c5cc195cc
parent 8442 535a00ca0d35
permissions -rw-r--r--
set engine window icon in sdl2

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