tools/templates/pixlabel.h
author unc0rr
Thu, 04 May 2017 13:23:37 +0300
changeset 12407 cc2163c7750f
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix fail to detect base package when built with ghc 8

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