tools/templates/pixlabel.h
author sheepluva
Sun, 30 Apr 2017 00:36:36 +0200
changeset 12392 cfcbc960337e
parent 8442 535a00ca0d35
permissions -rw-r--r--
very elaborate change to the confusing and convoluted code for detecting (non-)linked SDL-libs versions in frontend

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