tools/templates/pixlabel.h
author antonc27 <antonc27@mail.ru>
Fri, 14 Aug 2015 02:09:46 +0200
branchios-revival
changeset 11118 600a5af8d61f
parent 8442 535a00ca0d35
permissions -rw-r--r--
- Fix for strange problem with table view in StatsPage - rowHeight is 1 by default. So, fixed by implicit size.

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