tools/templates/pixlabel.h
author Wuzzy
Mon, 18 Nov 2013 22:14:16 +0100
changeset 9704 055fee9da6a0
parent 8442 535a00ca0d35
permissions -rw-r--r--
german translation update PS: * I also merged in the typo fixes by nemo and hasufell * Sorry it took so looooong for this to actually get committed -sheepluva

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