Version: 9.15.0
QtxToolBar::Watcher Class Reference

Internal class which goal is to watch parent toolbar state changing. More...

Inheritance diagram for QtxToolBar::Watcher:
Inheritance graph

Public Member Functions

 Watcher (QtxToolBar *)
 Constructor. More...
 
void shown (QtxToolBar *)
 Set internal status to "shown". More...
 
void hidden (QtxToolBar *)
 Set internal status to "hidden". More...
 
virtual bool eventFilter (QObject *, QEvent *)
 Custom event filter. More...
 
bool isEmpty () const
 
bool isVisible () const
 

Protected Member Functions

virtual void customEvent (QEvent *)
 Proces custom events. More...
 

Private Types

enum  { Install = QEvent::User , Update }
 

Private Member Functions

void installFilters ()
 Install this object as event dilter to all children widgets of the toolbar being watched. More...
 
void showContainer ()
 Show the toolbar being watched. More...
 
void hideContainer ()
 Hide the toolbar being watched. More...
 
void updateVisibility ()
 Update visibility state of all children widgets of the toolbar being watched. More...
 
void setEmpty (const bool)
 
void setVisible (const bool)
 

Private Attributes

QtxToolBarmyCont
 
bool myState
 
bool myEmpty
 

Detailed Description

Internal class which goal is to watch parent toolbar state changing.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
Install 
Update 

Constructor & Destructor Documentation

◆ Watcher()

QtxToolBar::Watcher::Watcher ( QtxToolBar cont)

Constructor.

Parameters
conttoolbar to be watched

References installFilters(), myCont, and setVisible().

Member Function Documentation

◆ customEvent()

void QtxToolBar::Watcher::customEvent ( QEvent e)
protectedvirtual

Proces custom events.

Parameters
ecustom event

◆ eventFilter()

bool QtxToolBar::Watcher::eventFilter ( QObject o,
QEvent e 
)
virtual

Custom event filter.

Parameters
oevent receiver object
eevent sent to object
Returns
true if further event processing should be stopped

◆ hidden()

void QtxToolBar::Watcher::hidden ( QtxToolBar tb)

Set internal status to "hidden".

Parameters
tbtoolbar

References QtxToolBar::setVisible().

◆ hideContainer()

void QtxToolBar::Watcher::hideContainer ( )
private

Hide the toolbar being watched.

References QtxToolBar::setVisible().

◆ installFilters()

void QtxToolBar::Watcher::installFilters ( )
private

Install this object as event dilter to all children widgets of the toolbar being watched.

◆ isEmpty()

bool QtxToolBar::Watcher::isEmpty ( ) const

◆ isVisible()

bool QtxToolBar::Watcher::isVisible ( ) const

◆ setEmpty()

void QtxToolBar::Watcher::setEmpty ( const bool  on)
private

◆ setVisible()

void QtxToolBar::Watcher::setVisible ( const bool  on)
private

◆ showContainer()

void QtxToolBar::Watcher::showContainer ( )
private

Show the toolbar being watched.

References QtxToolBar::setVisible().

◆ shown()

void QtxToolBar::Watcher::shown ( QtxToolBar tb)

Set internal status to "shown".

Parameters
tbtoolbar

References QtxToolBar::setVisible().

◆ updateVisibility()

void QtxToolBar::Watcher::updateVisibility ( )
private

Update visibility state of all children widgets of the toolbar being watched.

Member Data Documentation

◆ myCont

QtxToolBar* QtxToolBar::Watcher::myCont
private

◆ myEmpty

bool QtxToolBar::Watcher::myEmpty
private

◆ myState

bool QtxToolBar::Watcher::myState
private

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