tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Sat, 07 Jul 2018 23:29:02 +0200
changeset 13452 2d787d122083
parent 8442 535a00ca0d35
permissions -rw-r--r--
Fix TotalRounds still being -1 in first real turn after hog placement phase Now it is: Hog placement phase: -1 First real round: 0 (previously -1) Second real round: 1 (previously 0) Third real round: 2 (previously 1) ...

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