tools/templates/pixlabel.h
author yuenfu
Mon, 16 Nov 2015 15:48:37 -0500
changeset 11404 484d197539f2
parent 8442 535a00ca0d35
permissions -rw-r--r--
a submitted taiwanese translation. cursory review in google translate. there were a few keys that had translations removed, perhaps due to the english being better suited.

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