tools/templates/pixlabel.h
author nemo
Mon, 28 Nov 2016 13:46:25 -0500
changeset 12097 ebe87b6ed182
parent 8442 535a00ca0d35
permissions -rw-r--r--
add alpha for sd-tint, since CopherNeue thinks the textures might need fading

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