# class KGuiItem

###

Module | kdeui
Namespace |
Class | KGuiItem
Inherits |

An abstract class for GUI data such as ToolTip and Icon.

Author Holger Freyther <freyher@yahoo.com>

See also KStandardGuiItem

### methods

- KGuiItem ( )

  returns ctor

- KGuiItem (text, iconName, toolTip, whatsThis)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  iconName | QString | QString()
  toolTip | QString | QString()
  whatsThis | QString | QString()

- KGuiItem (text, icon, toolTip, whatsThis)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  icon | KIcon |
  toolTip | QString | QString()
  whatsThis | QString | QString()

- KGuiItem (rhs)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  rhs | KGuiItem |

- KGuiItem (a0, a1, a2, a3)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | QString | QString()
  a2 | QString | QString()
  a3 | QString | QString()

- hasIcon ( )

  returns bool

- hasIconSet ( )

  returns bool

- icon ( )

  returns KIcon

- iconName ( )

  returns QString

- iconSet (a0, size)

  returns QIcon
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KIconLoader.Group | KIconLoader.Small
  size | int | 0

  Deprecated use icon() instead

- isEnabled ( )

  returns bool

- plainText ( )

  returns QString

- setEnabled (enable)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  enable | bool |

- setIcon (iconset)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  iconset | KIcon |

- setIconName (iconName)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  iconName | QString |

- setText (text)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  text | QString |

- setToolTip (tooltip)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  tooltip | QString |

- setWhatsThis (whatsThis)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  whatsThis | QString |

- text ( )

  returns QString

- toolTip ( )

  returns QString

- whatsThis ( )

  returns QString