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

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 | |
| QtxToolBar * | myCont |
| bool | myState |
| bool | myEmpty |
Internal class which goal is to watch parent toolbar state changing.
| QtxToolBar::Watcher::Watcher | ( | QtxToolBar * | cont | ) |
Constructor.
| cont | toolbar to be watched |
References installFilters(), myCont, and setVisible().
|
protectedvirtual |
Proces custom events.
| e | custom event |
Custom event filter.
| o | event receiver object |
| e | event sent to object |
true if further event processing should be stopped | void QtxToolBar::Watcher::hidden | ( | QtxToolBar * | tb | ) |
|
private |
Hide the toolbar being watched.
References QtxToolBar::setVisible().
|
private |
Install this object as event dilter to all children widgets of the toolbar being watched.
| bool QtxToolBar::Watcher::isEmpty | ( | ) | const |
| bool QtxToolBar::Watcher::isVisible | ( | ) | const |
|
private |
|
private |
|
private |
Show the toolbar being watched.
References QtxToolBar::setVisible().
| void QtxToolBar::Watcher::shown | ( | QtxToolBar * | tb | ) |
|
private |
Update visibility state of all children widgets of the toolbar being watched.
|
private |
|
private |
|
private |