comparison widgets/NotifyingPushButton.h @ 1216:dc2af6616c83

Merge from branch 3.0-integration
author Chris Cannam
date Fri, 13 Jan 2017 10:29:50 +0000
parents 7609580fb05a
children a18e78b9c78b
comparison
equal deleted inserted replaced
1048:e8102ff5573b 1216:dc2af6616c83
11 published by the Free Software Foundation; either version 2 of the 11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #ifndef _NOTIFYING_PUSH_BUTTON_H_ 16 #ifndef SV_NOTIFYING_PUSH_BUTTON_H
17 #define _NOTIFYING_PUSH_BUTTON_H_ 17 #define SV_NOTIFYING_PUSH_BUTTON_H
18 18
19 #include <QPushButton> 19 #include <QPushButton>
20 20
21 /** 21 /**
22 * Very trivial enhancement to QPushButton to make it emit signals when 22 * Very trivial enhancement to QPushButton to make it emit signals
23 * the mouse enters and leaves (for context help). 23 * when the mouse enters and leaves (for context help). See also
24 * NotifyingToolButton
24 */ 25 */
25 26
26 class NotifyingPushButton : public QPushButton 27 class NotifyingPushButton : public QPushButton
27 { 28 {
28 Q_OBJECT 29 Q_OBJECT
30
29 public: 31 public:
30
31 NotifyingPushButton(QWidget *parent = 0) : 32 NotifyingPushButton(QWidget *parent = 0) :
32 QPushButton(parent) { } 33 QPushButton(parent) { }
33 34
34 virtual ~NotifyingPushButton(); 35 virtual ~NotifyingPushButton();
35 36