tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Tue, 06 Feb 2018 05:54:34 +0100
changeset 12903 9e7c1d5eec73
parent 8442 535a00ca0d35
permissions -rw-r--r--
String cleanup: Double/triple exclamation marks

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