author | unc0rr |
Fri, 16 Jan 2009 23:27:25 +0000 | |
changeset 1687 | a73c8cda1ed1 |
parent 359 | 59fbfc65fbda |
child 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 |
{ |
|
8 |
Q_OBJECT |
|
9 |
||
10 |
public: |
|
11 |
||
12 |
PixLabel(); |
|
13 |
QList<QRect> rects; |
|
14 |
||
15 |
public slots: |
|
16 |
void AddRect(); |
|
17 |
||
18 |
private: |
|
19 |
void paintEvent(QPaintEvent * event); |
|
20 |
void mousePressEvent(QMouseEvent * e); |
|
21 |
}; |