comparison widgets/NotifyingPushButton.h @ 1203:ff042979331b 3.0-integration

Merge from branch svg, and thus (in some subrepos) from levelpanwidget
author Chris Cannam
date Mon, 19 Dec 2016 16:34:38 +0000
parents 7609580fb05a
children a18e78b9c78b
comparison
equal deleted inserted replaced
1185:f32828ea63d9 1203:ff042979331b
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