tools/templates/pixlabel.h
author sheepluva
Sun, 23 Feb 2014 21:55:08 +0100
changeset 10157 41ee36573792
parent 8442 535a00ca0d35
permissions -rw-r--r--
tweak dynamite sprite (pixels at frame border, leading to visible filtering artifacts when zoomed)

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