tools/templates/pixlabel.h
author antonc27 <antonc27@mail.ru>
Sun, 09 Aug 2015 00:04:41 +0200
branchios-revival
changeset 11098 0032a00d915b
parent 8442 535a00ca0d35
permissions -rw-r--r--
- Fix for new name of SDL 2 libraries Note: Actually, seems to work correctly without it, but just to be sure

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