tools/templates/pixlabel.h
author unc0rr
Sat, 01 Nov 2014 00:23:22 +0300
branchqmlfrontend
changeset 10448 4cb727e029fa
parent 8442 535a00ca0d35
permissions -rw-r--r--
- Allow to delete teams from config - Manage team colors (internally, no gui so far) - 'Play' button on local game page (works!)

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