tools/templates/pixlabel.h
author Wuzzy <almikes@aol.com>
Fri, 25 Nov 2016 01:20:03 +0100
changeset 12072 10aad1cafc10
parent 8442 535a00ca0d35
permissions -rw-r--r--
Game mode messages: New messages for PlaceHog+King; All messages get a colon to get highlighted; Reorder messages more logically

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