tools/templates/pixlabel.h
author sheepluva
Fri, 16 Sep 2016 00:22:05 +0200
changeset 11853 6a0d6b00dac8
parent 8442 535a00ca0d35
permissions -rw-r--r--
Highlander: give visual and acustic feedback when weapons are collected from a kill, similar to collecting a crate

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