Mercurial > hg > svgui
comparison widgets/ClickableLabel.h @ 1414:fa986b91d77f
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:51 +0000 |
parents | 05d614f6e46d |
children |
comparison
equal
deleted
inserted
replaced
1413:0930a27ebea2 | 1414:fa986b91d77f |
---|---|
10 published by the Free Software Foundation; either version 2 of the | 10 published by the Free Software Foundation; either version 2 of the |
11 License, or (at your option) any later version. See the file | 11 License, or (at your option) any later version. See the file |
12 COPYING included with this distribution for more information. | 12 COPYING included with this distribution for more information. |
13 */ | 13 */ |
14 | 14 |
15 #ifndef _CLICKABLE_LABEL_H_ | 15 #ifndef SV_CLICKABLE_LABEL_H |
16 #define _CLICKABLE_LABEL_H_ | 16 #define SV_CLICKABLE_LABEL_H |
17 | 17 |
18 #include <QLabel> | 18 #include <QLabel> |
19 | 19 |
20 class ClickableLabel : public QLabel | 20 class ClickableLabel : public QLabel |
21 { | 21 { |
29 | 29 |
30 signals: | 30 signals: |
31 void clicked(); | 31 void clicked(); |
32 | 32 |
33 protected: | 33 protected: |
34 virtual void mousePressEvent(QMouseEvent *) { | 34 void mousePressEvent(QMouseEvent *) override { |
35 emit clicked(); | 35 emit clicked(); |
36 } | 36 } |
37 }; | 37 }; |
38 | 38 |
39 #endif | 39 #endif |