tools/templates/pixlabel.h
author antonc27 <antonc27@mail.ru>
Thu, 05 Nov 2015 03:08:49 +0100
branchios-revival
changeset 11301 fa18940f290d
parent 8442 535a00ca0d35
permissions -rw-r--r--
- Rus localization for following game styles: - - Balanced_Random_Weapon - - Construction_Mode - - Highlander - - Racer - - Random_Weapon - - TechRacer - - The_Specialists - - WxW - Some missed strings added to stub.lua - Translation credits update

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