tools/templates/pixlabel.h
author koda
Tue, 19 Mar 2013 00:30:30 +0100
branchcmake_pascal
changeset 8764 f16bcb3dba9e
parent 8442 535a00ca0d35
permissions -rw-r--r--
the default CMake(Lang)Compiler.cmake location changed since 2.8.10

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