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

#include <NotifyingToolButton.h>

Inheritance diagram for NotifyingToolButton:
Inheritance graph
Collaboration diagram for NotifyingToolButton:
Collaboration graph

Signals

void mouseEntered ()
 
void mouseLeft ()
 

Public Member Functions

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

Protected Member Functions

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

Detailed Description

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

See also NotifyingPushButton

Definition at line 27 of file NotifyingToolButton.h.

Constructor & Destructor Documentation

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

Definition at line 18 of file NotifyingToolButton.cpp.

Referenced by NotifyingToolButton().

Member Function Documentation

void NotifyingToolButton::mouseEntered ( )
signal

Referenced by enterEvent(), and NotifyingToolButton().

void NotifyingToolButton::mouseLeft ( )
signal

Referenced by leaveEvent(), and NotifyingToolButton().

void NotifyingToolButton::enterEvent ( QEvent *  e)
overrideprotected

Definition at line 23 of file NotifyingToolButton.cpp.

References mouseEntered().

Referenced by NotifyingToolButton().

void NotifyingToolButton::leaveEvent ( QEvent *  e)
overrideprotected

Definition at line 30 of file NotifyingToolButton.cpp.

References mouseLeft().

Referenced by NotifyingToolButton().


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