tools/templates/pixlabel.h
author sheepluva
Tue, 10 Jun 2014 23:21:22 +0200
changeset 10275 6c91047f59b6
parent 8442 535a00ca0d35
permissions -rw-r--r--
RAR: cleaning up a bit of the IFDEF-clusterf*ck

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