tools/templates/pixlabel.h
author nemo
Fri, 06 Apr 2018 12:34:23 -0400
changeset 13311 574d34577ee9
parent 8442 535a00ca0d35
permissions -rw-r--r--
quick game wasn't checking for hidden themes. It should, but this will at least make them not-crash. The results are kind of amusing.

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