tools/templates/pixlabel.h
author dag10
Sat, 09 Feb 2013 15:26:10 -0500
changeset 8475 f605bc59c603
parent 8442 535a00ca0d35
permissions -rw-r--r--
Initial theme selection is now random. Theme prompt now has a search input and no longer uses FlowLayout. (Resolves issue #520)

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