# class KToolBarSpacerAction

###

Module | kdeui
Namespace |
Class | KToolBarSpacerAction
Inherits | KAction

An extension to KAction which allows for adding a spacer item into a QToolBar / KToolBar.

Use this as the replacement for the old KToolBar.alignItemRight().

Author Hamish Rodda <rodda@kde.org>

### methods

- KToolBarSpacerAction (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QObject |

  Creates a new toolbar spacer action.

  parent - The action's parent object.

- KToolBarSpacerAction (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QObject |

- createWidget (parent)

  returns QWidget

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |

  Reimplemented from

  See also QActionWidgetFactory.

- deleteWidget (widget)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  widget | QWidget |

  Reimplemented from

  See also QWidgetAction.

- maximumWidth ( )

  returns int

  Returns the maximum width of the spacer item.

- minimumWidth ( )

  returns int

  Returns the minimum width of the spacer item.

- setMaximumWidth (width)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  width | int |

  Sets the maximum width - of the spacer item.

- setMinimumWidth (width)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  width | int |

  Sets the minimum width - of the spacer item.

- setWidth (width)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  width | int |

  Sets the width - of the spacer item.

- width ( )

  returns int

  Returns the width of the spacer item.