# class KUndoStack

###

Module | kdeui
Namespace |
Class | KUndoStack
Inherits | QUndoStack

Extends QUndoStack with functions that creates actions with KDE's default icons and shortcuts. See QUndoStack for more information.

### methods

- KUndoStack (parent)

  returns ctor

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

  Constructs a KUndoStack with parent as parent

  parent - parent of the object

- createRedoAction (actionCollection, actionName)

  returns QAction

  Argument | Type | Default
  --- | --- | ---
  actionCollection | KActionCollection |
  actionName | QString | QString()

  Creates an redo action with the default shortcut and icon and adds it to actionCollection

  actionCollection - the KActionCollection that should be the parent of the action

  actionName - the created action's object name, empty string will set it to the KDE default Returns the created action.

- createUndoAction (actionCollection, actionName)

  returns QAction

  Argument | Type | Default
  --- | --- | ---
  actionCollection | KActionCollection |
  actionName | QString | QString()

  Creates an undo action with the default KDE shortcut and icon and adds it to actionCollection

  actionCollection - the KActionCollection that should be the parent of the action

  actionName - the created action's object name, empty string will set it to the KDE default Returns the created action.