poi-yelp: update LICENSE with text from COPYING
[apps/poi-yelp.git] / ClickableLabel.h
1 #ifndef __CLICKABLE_LABEL_H__
2 #define __CLICKABLE_LABEL_H__
3
4 #include <QLabel>
5 #include <QWidget>
6 #include <QString>
7
8 class ClickableLabel : public QLabel
9 {
10     Q_OBJECT
11     public:
12         ClickableLabel(const QString& text="", QWidget* parent=0 ):QLabel(parent)
13         {
14             setText(text);
15         }
16         ~ClickableLabel(){}
17     signals:
18         void clicked();
19     protected:
20         void mouseReleaseEvent(QMouseEvent* event) { emit clicked(); }
21 };
22
23 #endif // __CLICKABLE_LABEL_H__