# class KPasteTextAction

###

Module | kdeui
Namespace |
Class | KPasteTextAction
Inherits | KAction

An action for pasting text from the clipboard. It's useful for text handling applications as when plugged into a toolbar it provides a menu with the clipboard history if klipper is running. If klipper is not running, the menu has only one item: the current clipboard content.

### methods

- KPasteTextAction (parent)

  returns ctor
  KDE 4.1.0 and later only

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

  Constructs an action with the specified parent.

  parent - The parent of this action.

- KPasteTextAction (text, parent)

  returns ctor

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

  Constructs an action with text; a shortcut may be specified by the ampersand character (e.g. "&Option" creates a shortcut with key O )

  This is the most common KAction used when you do not have a corresponding icon (note that it won't appear in the current version of the "Edit ToolBar" dialog, because an action needs an icon to be plugged in a toolbar...).

  text - The text that will be displayed.

  parent - The parent of this action.

- KPasteTextAction (icon, text, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  icon | KIcon |
  text | QString |
  parent | QObject |

  Constructs an action with text and an icon; a shortcut may be specified by the ampersand character (e.g. "&Option" creates a shortcut with key O )

  This is the other common KAction used. Use it when you do have a corresponding icon.

  icon - The icon to display.

  text - The text that will be displayed.

  parent - The parent of this action.

- KPasteTextAction (a0)

  returns ctor
  before KDE 4.1.0 only

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

- setMixedMode (mode)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  mode | bool |

  Controls the behavior of the clipboard history menu popup.

  mode - If false and the clipboard contains a non-text object the popup menu with the clipboard history will appear immediately as the user clicks the toolbar action; if true, the action works like the standard paste action even if the current clipboard object is not text. Default value is true.