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

Public Member Functions | |
| Watcher (QtxToolBar *) | |
| Constructor. | |
| void | shown (QtxToolBar *) |
| Set internal status to "shown". | |
| void | hidden (QtxToolBar *) |
| Set internal status to "hidden". | |
| virtual bool | eventFilter (QObject *, QEvent *) |
| Custom event filter. | |
| bool | isEmpty () const |
| bool | isVisible () const |
Protected Member Functions | |
| virtual void | customEvent (QEvent *) |
| Proces custom events. | |
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. | |
| void | showContainer () |
| Show the toolbar being watched. | |
| void | hideContainer () |
| Hide the toolbar being watched. | |
| void | updateVisibility () |
| Update visibility state of all children widgets of the toolbar being watched. | |
| void | setEmpty (const bool) |
| void | setVisible (const bool) |
Private Attributes | |
| QtxToolBar * | myCont |
| bool | myState |
| bool | myEmpty |
| QtxToolBar.Watcher::Watcher | ( | QtxToolBar * | cont | ) |
| cont | toolbar to be watched |
References QtxToolBar.Watcher.installFilters(), QtxToolBar.Watcher.myCont, and QtxToolBar.Watcher.setVisible().
| void QtxToolBar.Watcher::shown | ( | QtxToolBar * | tb | ) |
| tb | toolbar |
References QtxToolBar.setVisible().
| void QtxToolBar.Watcher::hidden | ( | QtxToolBar * | tb | ) |
| tb | toolbar |
References QtxToolBar.setVisible().
| o | event receiver object |
| e | event sent to object |
true if further event processing should be stopped | bool QtxToolBar.Watcher::isEmpty | ( | ) | const |
| bool QtxToolBar.Watcher::isVisible | ( | ) | const |
| void QtxToolBar.Watcher::customEvent | ( | QEvent * | e | ) | [protected, virtual] |
| e | custom event |
| void QtxToolBar.Watcher::installFilters | ( | ) | [private] |
| void QtxToolBar.Watcher::showContainer | ( | ) | [private] |
References QtxToolBar.setVisible().
| void QtxToolBar.Watcher::hideContainer | ( | ) | [private] |
References QtxToolBar.setVisible().
| void QtxToolBar.Watcher::updateVisibility | ( | ) | [private] |
| void QtxToolBar.Watcher::setEmpty | ( | const bool | on | ) | [private] |
| void QtxToolBar.Watcher::setVisible | ( | const bool | on | ) | [private] |
QtxToolBar* QtxToolBar.Watcher.myCont [private] |
bool QtxToolBar.Watcher.myState [private] |
bool QtxToolBar.Watcher.myEmpty [private] |