comparison widgets/ClickableLabel.h @ 1417:2487521e857b

Merge
author Chris Cannam
date Wed, 23 Jan 2019 14:44:16 +0000
parents 05d614f6e46d
children
comparison
equal deleted inserted replaced
1416:d794630429a7 1417:2487521e857b
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