tools/templates/pixlabel.h
author koda
Thu, 28 Feb 2013 22:59:22 +0100
changeset 8609 3f6c08223aa1
parent 8442 535a00ca0d35
permissions -rw-r--r--
use NETGAME_DEFAULT_PORT macro across frontend sources

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