Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

Member Enumeration Documentation

anonymous enum
private
Enumerator
Install 
Update 

Constructor & Destructor Documentation

QtxToolBar::Watcher::Watcher ( QtxToolBar cont)
Parameters
conttoolbar to be watched

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

Member Function Documentation

void QtxToolBar::Watcher::customEvent ( QEvent e)
protectedvirtual
Parameters
ecustom event
bool QtxToolBar::Watcher::eventFilter ( QObject o,
QEvent e 
)
virtual
Parameters
oevent receiver object
eevent sent to object
Returns
true if further event processing should be stopped
void QtxToolBar::Watcher::hidden ( QtxToolBar tb)
Parameters
tbtoolbar

References QtxToolBar::setVisible().

void QtxToolBar::Watcher::hideContainer ( )
private
void QtxToolBar::Watcher::installFilters ( )
private
bool QtxToolBar::Watcher::isEmpty ( ) const
bool QtxToolBar::Watcher::isVisible ( ) const
void QtxToolBar::Watcher::setEmpty ( const bool  on)
private
void QtxToolBar::Watcher::setVisible ( const bool  on)
private
void QtxToolBar::Watcher::showContainer ( )
private
void QtxToolBar::Watcher::shown ( QtxToolBar tb)
Parameters
tbtoolbar

References QtxToolBar::setVisible().

void QtxToolBar::Watcher::updateVisibility ( )
private

Member Data Documentation

QtxToolBar* QtxToolBar::Watcher::myCont
private
bool QtxToolBar::Watcher::myEmpty
private
bool QtxToolBar::Watcher::myState
private

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