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:
Inheritance graph
Collaboration diagram for NotifyingPushButton:
Collaboration graph

Signals

void mouseEntered ()
 
void mouseLeft ()
 

Public Member Functions

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

Protected Member Functions

void enterEvent (QEvent *) override
 
void leaveEvent (QEvent *) override
 

Detailed Description

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

See also NotifyingToolButton

Definition at line 27 of file NotifyingPushButton.h.

Constructor & Destructor Documentation

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

Definition at line 18 of file NotifyingPushButton.cpp.

Referenced by NotifyingPushButton().

Member Function Documentation

void NotifyingPushButton::mouseEntered ( )
signal

Referenced by enterEvent(), and NotifyingPushButton().

void NotifyingPushButton::mouseLeft ( )
signal

Referenced by leaveEvent(), and NotifyingPushButton().

void NotifyingPushButton::enterEvent ( QEvent *  e)
overrideprotected

Definition at line 23 of file NotifyingPushButton.cpp.

References mouseEntered().

Referenced by NotifyingPushButton().

void NotifyingPushButton::leaveEvent ( QEvent *  e)
overrideprotected

Definition at line 30 of file NotifyingPushButton.cpp.

References mouseLeft().

Referenced by NotifyingPushButton().


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