Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QtxToolBar Class Reference

Enhanced toolbar class.

#include <QtxToolBar.h>

Inheritance diagram for QtxToolBar:
Inheritance graph

Classes

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

Public Slots

virtual void setVisible (bool)
 Show/hide the toolbar. More...
 

Public Member Functions

 QtxToolBar (const bool, const QString &, QWidget *)
 Constructor. More...
 
 QtxToolBar (const QString &, QWidget *)
 Constructor. More...
 
 QtxToolBar (const bool, QWidget *=0)
 Constructor. More...
 
 QtxToolBar (QWidget *=0)
 Constructor. More...
 
virtual ~QtxToolBar ()
 Destructor. More...
 
QMainWindowmainWindow () const
 Get parent main window. More...
 

Protected Member Functions

virtual bool event (QEvent *)
 

Private Attributes

WatchermyWatcher
 watcher object More...
 
bool myStretch
 stretching toolbar flag (not used) More...
 

Constructor & Destructor Documentation

QtxToolBar::QtxToolBar ( const bool  watch,
const QString &  label,
QWidget parent 
)
Parameters
watchif true the event filter is installed to watch toolbar state changes to update it properly
labeltoolbar title
parentparent widget

References myWatcher.

QtxToolBar::QtxToolBar ( const QString &  label,
QWidget parent 
)
Parameters
labeltoolbar title
parentparent widget
QtxToolBar::QtxToolBar ( const bool  watch,
QWidget parent = 0 
)
Parameters
watchif true the event filter is installed to watch toolbar state changes to update it properly
parentparent widget

References myWatcher.

QtxToolBar::QtxToolBar ( QWidget parent = 0)
Parameters
parentparent widget
QtxToolBar::~QtxToolBar ( )
virtual

Member Function Documentation

bool QtxToolBar::event ( QEvent e)
protectedvirtual
QMainWindow * QtxToolBar::mainWindow ( ) const
Returns
main window pointer
void QtxToolBar::setVisible ( bool  visible)
virtualslot
Parameters
onnew visibility state

References QtxToolBar::Watcher::hidden(), myWatcher, and QtxToolBar::Watcher::shown().

Member Data Documentation

bool QtxToolBar::myStretch
private
Watcher* QtxToolBar::myWatcher
private

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