author | Wuzzy <almikes@aol.com> |
Wed, 13 Apr 2016 13:16:01 +0200 | |
changeset 11939 | c17e5ac9f76d |
parent 8442 | 535a00ca0d35 |
permissions | -rw-r--r-- |
359 | 1 |
#include <QLabel> |
2 |
#include <QRect> |
|
3 |
#include <QList> |
|
4 |
#include <QMouseEvent> |
|
5 |
||
6 |
class PixLabel : public QLabel |
|
7 |
{ |
|
8442 | 8 |
Q_OBJECT |
359 | 9 |
|
10 |
public: |
|
11 |
||
8442 | 12 |
PixLabel(); |
13 |
QList<QRect> rects; |
|
359 | 14 |
|
15 |
public slots: |
|
8442 | 16 |
void AddRect(); |
359 | 17 |
|
18 |
private: |
|
8442 | 19 |
void paintEvent(QPaintEvent * event); |
20 |
void mousePressEvent(QMouseEvent * e); |
|
359 | 21 |
}; |