21 lines
288 B
C++
21 lines
288 B
C++
#ifndef __CLICKLABEL__
|
|
#define __CLICKLABEL__
|
|
|
|
#include <QLabel>
|
|
|
|
class ClickLabel:public QLabel{
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
void pressed(void);
|
|
public:
|
|
ClickLabel(QWidget *parent=0): QLabel(parent){
|
|
}
|
|
|
|
protected:
|
|
void mousePressEvent( QMouseEvent* );
|
|
|
|
};
|
|
|
|
#endif
|