22 lines
340 B
C
22 lines
340 B
C
|
#ifndef _CLICKABLELABEL_H_
|
||
|
#define _CLICKABLELABEL_H_
|
||
|
|
||
|
#include <QMouseEvent>
|
||
|
#include <QLabel>
|
||
|
|
||
|
class ClickableLabel : public QLabel
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
ClickableLabel(QWidget *parent = NULL);
|
||
|
virtual void mouseReleaseEvent(QMouseEvent *event);
|
||
|
|
||
|
signals:
|
||
|
void clicked( int x, int y );
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif /* ifndef _CLICKABLELABEL_H_ */
|