tools/templates/pixlabel.h
author koda
Fri, 01 Mar 2013 00:06:05 +0100
changeset 8613 82c649dfc7c3
parent 8442 535a00ca0d35
permissions -rw-r--r--
split cVersionString into its three separate components (version, revision, hash) and apply the new values sensibly on the frontend (esp. title, info and feedback)

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