svgui  1.9
NotifyingPushButton Class Reference

Very trivial enhancement to QPushButton to make it emit signals when the mouse enters and leaves (for context help). More...

#include <NotifyingPushButton.h>

Inheritance diagram for NotifyingPushButton:
Collaboration diagram for NotifyingPushButton:

Signals

void mouseEntered ()
 
void mouseLeft ()
 

Public Member Functions

 NotifyingPushButton (QWidget *parent=0)
 
virtual ~NotifyingPushButton ()
 

Protected Member Functions

virtual void enterEvent (QEvent *)
 
virtual void leaveEvent (QEvent *)
 

Detailed Description

Very trivial enhancement to QPushButton to make it emit signals when the mouse enters and leaves (for context help).

Definition at line 26 of file NotifyingPushButton.h.

Constructor & Destructor Documentation

◆ NotifyingPushButton()

NotifyingPushButton::NotifyingPushButton ( QWidget *  parent = 0)
inline

Definition at line 31 of file NotifyingPushButton.h.

◆ ~NotifyingPushButton()

NotifyingPushButton::~NotifyingPushButton ( )
virtual

Definition at line 18 of file NotifyingPushButton.cpp.

Member Function Documentation

◆ mouseEntered

void NotifyingPushButton::mouseEntered ( )
signal

Referenced by enterEvent().

◆ mouseLeft

void NotifyingPushButton::mouseLeft ( )
signal

Referenced by leaveEvent().

◆ enterEvent()

void NotifyingPushButton::enterEvent ( QEvent *  e)
protectedvirtual

Definition at line 23 of file NotifyingPushButton.cpp.

References mouseEntered().

◆ leaveEvent()

void NotifyingPushButton::leaveEvent ( QEvent *  e)
protectedvirtual

Definition at line 30 of file NotifyingPushButton.cpp.

References mouseLeft().


The documentation for this class was generated from the following files: