# class KToggleToolBarAction

###

Module | kdeui
Namespace |
Class | KToggleToolBarAction
Inherits | KToggleAction

An action that takes care of everything associated with showing or hiding a toolbar by a menu action. It will show or hide the toolbar with the given name when activated, and check or uncheck itself if the toolbar is manually shown or hidden.

If you need to perfom some additional action when the toolbar is shown or hidden, connect to the toggled(bool) signal. It will be emitted after the toolbar's visibility has changed, whenever it changes.

### methods

- KToggleToolBarAction (toolBarName, text, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  toolBarName | char |
  text | QString |
  parent | QObject |

  Create a KToggleToolbarAction that manages the toolbar named toolBarName. This can be either the name of a toolbar in an xml ui file, or a toolbar programmatically created with that name.

  The - action's parent object.

- KToggleToolBarAction (toolBar, text, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  toolBar | KToolBar |
  text | QString |
  parent | QObject |

  Create a KToggleToolbarAction that manages the toolBar. - This can be either the name of a toolbar in an xml ui file, or a toolbar programmatically created with that name.

  toolBar - the toolbar to be managed

  parent - The action's parent object.

- eventFilter (watched, event)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  watched | QObject |
  event | QEvent |

  Reimplemented from

  See also QObject.

- toolBar ( )

  returns KToolBar

  Returns a pointer to the tool bar it manages.