tools/templates/pixlabel.h
author sheepluva
Sun, 23 Nov 2014 02:15:57 +0100
changeset 10531 b8e6164a1a18
parent 8442 535a00ca0d35
permissions -rw-r--r--
fix for issue #234 - the framebuffers for side-by-side and top/bottom had alpha channels. so when sprites with alpha were blended into the framebuffer it would blend the sprite pixel alpha with the fb pixel alpha

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