comparison widgets/NotifyingPushButton.h @ 1324:13d9b422f7fe zoom

Merge from default branch
author Chris Cannam
date Mon, 17 Sep 2018 13:51:31 +0100
parents 7609580fb05a
children a18e78b9c78b
comparison
equal deleted inserted replaced
1183:57d192e26331 1324:13d9b422f7fe
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