Version: 9.12.0
QtxToolBar Class Reference

Enhanced toolbar class. More...

#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...
 

Detailed Description

Enhanced toolbar class.

Constructor & Destructor Documentation

◆ QtxToolBar() [1/4]

QtxToolBar::QtxToolBar ( const bool  watch,
const QString &  label,
QWidget parent 
)

Constructor.

Parameters
watchif true the event filter is installed to watch toolbar state changes to update it properly
labeltoolbar title
parentparent widget

References myWatcher.

◆ QtxToolBar() [2/4]

QtxToolBar::QtxToolBar ( const QString &  label,
QWidget parent 
)

Constructor.

Parameters
labeltoolbar title
parentparent widget

◆ QtxToolBar() [3/4]

QtxToolBar::QtxToolBar ( const bool  watch,
QWidget parent = 0 
)

Constructor.

Parameters
watchif true the event filter is installed to watch toolbar state changes to update it properly
parentparent widget

References myWatcher.

◆ QtxToolBar() [4/4]

QtxToolBar::QtxToolBar ( QWidget parent = 0)

Constructor.

Parameters
parentparent widget

◆ ~QtxToolBar()

QtxToolBar::~QtxToolBar ( )
virtual

Destructor.

Member Function Documentation

◆ event()

bool QtxToolBar::event ( QEvent e)
protectedvirtual

◆ mainWindow()

QMainWindow * QtxToolBar::mainWindow ( ) const

Get parent main window.

Returns
main window pointer

◆ setVisible

void QtxToolBar::setVisible ( bool  visible)
virtualslot

Show/hide the toolbar.

Parameters
onnew visibility state

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

Member Data Documentation

◆ myStretch

bool QtxToolBar::myStretch
private

stretching toolbar flag (not used)

◆ myWatcher

Watcher* QtxToolBar::myWatcher
private

watcher object


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