tools/templates/pixlabel.h
author unc0rr
Tue, 21 May 2013 23:48:00 +0400
changeset 9032 2345f5f96a29
parent 8442 535a00ca0d35
permissions -rw-r--r--
Clear nickname in case of collision so client could try again. Should help with issue #550 if not fix it.

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